Metadata-Version: 2.1
Name: pytailer
Version: 0.1.0
Summary: It is very simple implementation of the unix shell utility `tail`
Home-page: https://github.com/EnotYoyo/pytailer
License: MIT
Keywords: tail,tailf
Author: Andrey Lemets
Author-email: a.a.lemets@gmail.com
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Project-URL: Repository, https://github.com/EnotYoyo/pytailer
Description-Content-Type: text/markdown

# PyTAILer

PyTAILer is very simple implementation of the unix shell utility `tail`.

```python
from pytailer import fail_tail

with fail_tail("some_file.txt", lines=10) as tail:
    for line in tail:  # be careful: infinite loop!
        print(line)
```

Of course, you can use async version:

```python
import asyncio

from pytailer import async_fail_tail


async def main():
    with async_fail_tail("some_file.txt", lines=10) as tail:
        async for line in tail:  # be careful: infinite loop!
            print(line)


asyncio.run(main())  # python 3.7+ 
```

