k3cat
Just like nix command cat or tail, it continuously scan a file line by line.
k3cat is a component of pykit3 project: a python3 toolkit set.
Just like nix command cat or tail, it continuously scan a file line by line.
It provides with two way for user to handle lines: as a generator or specifying a handler function.
It also remembers the offset of the last scanning in a file in /tmp/.
If a file does not change(inode number does not change), it scans from the last
offset, or it scan from the first byte.
Install
pip install k3cat
Synopsis
import sys
import k3cat
fn = sys.argv[1]
for x in k3cat.Cat(fn, strip=True).iterate(timeout=0):
print(x)
Author
Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Copyright and License
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Metadata
Release files for k3cat 0.1.8
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 | Actions |
|---|---|---|---|---|
| k3cat-0.1.8.tar.gz | 12.7 kB | Without provenance | Details for k3cat-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| k3cat-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for k3cat-0.1.8-py3-none-any.whl |
Total release size: 21.7 kB
Release files / k3cat-0.1.8.tar.gz
| Download URL | k3cat-0.1.8.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1cc21c5f8e3ad08eac04cc4dcb9d0cec1e80ab1d6d989e91ea6d47d63b3624fb
|
|
BLAKE2b-256 checksum How to use checksums |
fabf053cdec29be56570fd9d8a2e0145e8bf45dac7525b12fd68e13fab6b65fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / k3cat-0.1.8-py3-none-any.whl
| Download URL | k3cat-0.1.8-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1912db4ef908d48b8551f4383f43fd14564588b19a689d9130609e6c30f6762
|
|
BLAKE2b-256 checksum How to use checksums |
2954fb7af57862067a6a5b632032d6c3cab6f6e6a4c9994cd5db26cdc0e019db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for k3cat 0.1.8
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.