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.

Files for cat2, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size cat2-0.3.1-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size cat2-0.3.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page