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.1.tar.gz
(2.9 kB
view details)
Built Distribution
cat2-0.3.1-py3-none-any.whl
(3.4 kB
view details)
File details
Details for the file cat2-0.3.1.tar.gz
.
File metadata
- Download URL: cat2-0.3.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db3994272892511b0db90422ac5e7eba4912ed8bf498e1bc93cc162580cbd62f |
|
MD5 | 314cfb671ef6eded9d9b9b3eedd54cfd |
|
BLAKE2b-256 | 65b5c949a3a025242af803dd593460cd2f91bb6ca26c40b95b358cc7587cf106 |
File details
Details for the file cat2-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: cat2-0.3.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d25c3b3fa1a087927082fe063178193dcda68956ecfed80941f414229f6f3a28 |
|
MD5 | 6e45d4d2bbc0cf24a1ad9deaeb18bd73 |
|
BLAKE2b-256 | 0f3b508d1477cfccd500b72720c425be9494e6b5935841fa6b8d06736be09fad |