Print file contents like a boss
Project description
cat2
Print file contents like a boss
CLI useage:
Programmatic usage:
from cat2 import Cat2, Cat2Exception
# line_from and line_to are optional parameters
cat2_file = Cat2(file_path, line_from, line_to)
# cat2_file is an iterator object
for line in cat2_file:
print(line)
print(cat2_file.line_number)
print(cat2_file.is_bytes)
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
cat2-0.3.0.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cat2-0.3.0-py3-none-any.whl
(4.3 kB
view details)
File details
Details for the file cat2-0.3.0.tar.gz.
File metadata
- Download URL: cat2-0.3.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e1002ef3c3e6f2a1f303f0067bd5012001d2aa1b749e59082bf70f3b96ca107
|
|
| MD5 |
a9aa9445a2c70306b7ceb70013e2ecc0
|
|
| BLAKE2b-256 |
fb3538c8dd068e4c86fe4a8a7aa7f124840b0290a0a8028c8438aa72dfc46fba
|
File details
Details for the file cat2-0.3.0-py3-none-any.whl.
File metadata
- Download URL: cat2-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f24f2f03e70362dd55ebca7481a8558bc2c40c48d1dbcadb2b7f412cd8ac24c
|
|
| MD5 |
659d8a71decc365d08db55fb325a4a35
|
|
| BLAKE2b-256 |
88b2bcf003f2402bad322af463a2f243f34ccac46046f54573899dd5db5b2665
|