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.

Filename, size & hash SHA256 hash help File type Python version Upload date
cat2-0.3.1-py3-none-any.whl (3.4 kB) Copy SHA256 hash SHA256 Wheel py3
cat2-0.3.1.tar.gz (2.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page