Skip to content

YangzhenZhao/aiotailf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI

Installation

pip install --upgrade aiotailf

Examples

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())

BasedOn

https://gist.github.com/amitsaha/5990310#gistcomment-3305811

Cli

Usage: tailf [OPTIONS] FILENAME

Options:
  --help  Show this message and exit.