# 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
Metadata
Release files for followname 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| followname-0.1.5.tar.gz | 6.3 kB | Without provenance | Details |
Release files / followname-0.1.5.tar.gz
| Download URL | followname-0.1.5.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb9fe0db24fd62b75228c93f2e375b678169aad9bf0268557f220bdc63ce4700
|
|
BLAKE2b-256 checksum How to use checksums |
2c720c8c7e020b541f6c9fc0e26aef4d6935dbabc08b0e271980613d52cebfca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for followname 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.