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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file followname-0.1.5.tar.gz
.
File metadata
- Download URL: followname-0.1.5.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb9fe0db24fd62b75228c93f2e375b678169aad9bf0268557f220bdc63ce4700 |
|
MD5 | 6f40b0ec2324bdd0a5a60eef6cc7580a |
|
BLAKE2b-256 | 2c720c8c7e020b541f6c9fc0e26aef4d6935dbabc08b0e271980613d52cebfca |