Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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-globtailer

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