pip install --upgrade aiotailf
import asyncio
from aiotailf import async_tail
async def tail_lines():
async for line in async_tail("test.log"):
print(line)
asyncio.run(tail_lines())
https://gist.github.com/amitsaha/5990310#gistcomment-3305811
Usage: tailf [OPTIONS] FILENAME
Options:
--help Show this message and exit.