Metadata-Version: 2.1
Name: there
Version: 0.0.11
Summary: Print current file and line number
Author-email: Matthias Bussonnier <bussonniermatthias@gmail.com>
Description-Content-Type: text/markdown
Classifier: License :: OSI Approved :: MIT License
Project-URL: Home, https://github.com/Carreau/there

# There

Print the current filename and line. 

Example, `where.py`

```python
import there
import there as here

print(here)
print('and')
print(there)
```

Then `python where.py` will print:

```
where.py:4
and
where.py:6
```

## replace print function

`There` provide a replacement for the `print` function, that prepend the
filename and line. 

Example, `where.py`

```python
from there import print

print('hi')
print('there')
```

Then `python where.py` will print:

```
where.py:3 hi
where.py:4 there
```

## that's it


That's it (for now), non more, no less. I have plan – the usually never get
realised – to also have a `there.indent` that return the indentation of the
current line.

# Gotchas

Returns the line where the `__str__`, or `__repr__` of `there` is computed.
Usually by `print`. So it might be wrong. If you want to be sure (like when
using `log`) wrap it in `str()`

Runs only on CPython likely. But anyway don't run it in production.





