Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msabramo/python-globtailer
A generator that yields lines from the most recently modified file matching a glob pattern
https://github.com/msabramo/python-globtailer
Last synced: about 1 month ago
JSON representation
A generator that yields lines from the most recently modified file matching a glob pattern
- Host: GitHub
- URL: https://github.com/msabramo/python-globtailer
- Owner: msabramo
- Created: 2012-09-25T20:33:42.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-07-06T20:05:13.000Z (over 11 years ago)
- Last Synced: 2024-11-22T15:20:37.787Z (about 1 month ago)
- Language: Python
- Size: 145 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
python-globtailer
=================.. image:: https://secure.travis-ci.org/msabramo/python-globtailer.png
:target: http://travis-ci.org/msabramo/python-globtailerThe main class is ``FileTailer``, a generator that yields lines from the most
recently modified file matching a glob pattern.Example:
.. code-block:: python
from globtailer import FileTailer
tailer = FileTailer("/path/to/*.log")
for line in tailer:
print(line)