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 hashes)
Built Distribution
cat2-0.3.1-py3-none-any.whl
(3.4 kB
view hashes)