Skip to main content

Just a slight modification of pprint module:

-- adding an empty line to the beginning and the end of whatever is being printed, to separate it visually from the text before and after -- changing some default values: setting the indent to 4, disabling sorting of dict. items and enabling underscore numbers -- adding some coloring functionality

After installing prprint module in a project's virtualenv you just need to add this line to your script:

from prprint import pprint, clr

Then you can use pprint as usual, and add colors by calling, for example 'clr.RED' before a coloured string and 'clr.END' after it. Available colors: GREY, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN

Metadata

Release files for prprint 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prprint 0.1.1
File Size Uploaded
prprint-0.1.1.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prprint 0.1.1
File Interpreter ABI Platform
prprint-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.3 kB

Release files / prprint-0.1.1.tar.gz

Download URL prprint-0.1.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4a6fb8f4eb233b921320afce07c3c4ea985e6cbd17e591346add9c520d6f2aac
BLAKE2b-256 checksum
How to use checksums
9dbb405d3f9a8d0e354e18ca3ec189adce6241117ca188f0f8e6445aa353d724
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Release files / prprint-0.1.1-py3-none-any.whl

Download URL prprint-0.1.1-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d188d56a89a515737a872cd22a92c17dcdd56d8ccc3aa3819cc35ee427f4da08
BLAKE2b-256 checksum
How to use checksums
adab95a798341c174332b780b3683df4234a1e78c429e47eb223ae3c7a6b7718
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page