It is very simple implementation of the unix shell utility `tail`
Project description
PyTAILer
PyTAILer is very simple implementation of the unix shell utility tail
.
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:
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+
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytailer-0.1.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file pytailer-0.1.0.tar.gz
.
File metadata
- Download URL: pytailer-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.6.8 Linux/5.4.0-73-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d51fae0da0d81e841358556352c29fb8d583d01ce2c87ab313e8e398402109db |
|
MD5 | 7c99b3db1ac8d3aaed60d66df2dcb973 |
|
BLAKE2b-256 | 51174ee1dee82669a33ecee6b56a5b4984d024373b636d4cce7130026489cc6c |
File details
Details for the file pytailer-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pytailer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.6.8 Linux/5.4.0-73-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 016f1d4052095d8d3c63503bc5d4e5667125c4fe4d65bfa4a8246d5fd255d084 |
|
MD5 | 4cb5acf2b597b7234af0b20e7cfcfd8a |
|
BLAKE2b-256 | 9341f00a0379bbae58fbb17bf8882a42d9776da3c1a535c6ce65724baa608f4e |