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/

Project details

Download files

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

Source Distribution

followname-0.1.5.tar.gz (6.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page