Content-Length: 256774 | pFad | https://github.com/kasun/python-tail

69 GitHub - kasun/python-tail: Unix tail follow implementation in python · GitHub
Skip to content

kasun/python-tail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-tail - Unix tail follow implementation in Python

Installation

python setup.py install

Basic Usage

import tail

# Create a tail instance
t = tail.Tail('file-to-be-followed')

# Register a callback function to be called when a new line is found in the followed file. 
# If no callback function is registerd, new lines would be printed to standard out.
t.register_callback(callback_function)

# Follow the file with 5 seconds as sleep time between iterations. 
# If sleep time is not provided 1 second is used as the default time.
t.follow(s=5)

About

Unix tail follow implementation in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/kasun/python-tail

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy