Skip to main content

Print file contents like a boss

Project description

cat2

PyPI version

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


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)

Uploaded Source

Built Distribution

cat2-0.3.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page