Skip to main content

Python tail is a simple implementation of GNU tail --follow=name.

Project description

# FollowName

FollowName is a simple implementation of GNU tail –follow=name

It provides an Iterator generator followname that returns lines as data is added to the file.

If the file is truncated or replaced followname will open the new file.

followname only requires read access to the file.

  • followname - read lines as a file grows

It also comes with followname, a command line version offering the same functionality as GNU tail –follow=name.

## Installation

Install with pip or easy_install.

pip install followname

## Examples

import followname
follower = FollowName("testfile.txt")
for line in follower.follow(open('test.txt')):
    print line

## Running Tests

FollowName currently only has doctests.

Run tests with nose:

nosetests --with-doctest src/followname

Run tests with doctest:

python -m doctest -v src/followname/__init__.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for followname, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size followname-0.1.5.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page