An enhanced pprint module with additional features.
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prprint-0.1.1.tar.gz.
File metadata
- Download URL: prprint-0.1.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a6fb8f4eb233b921320afce07c3c4ea985e6cbd17e591346add9c520d6f2aac
|
|
| MD5 |
0a5fe0aa60cc85f0b23757533d47b66f
|
|
| BLAKE2b-256 |
9dbb405d3f9a8d0e354e18ca3ec189adce6241117ca188f0f8e6445aa353d724
|
File details
Details for the file prprint-0.1.1-py3-none-any.whl.
File metadata
- Download URL: prprint-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d188d56a89a515737a872cd22a92c17dcdd56d8ccc3aa3819cc35ee427f4da08
|
|
| MD5 |
b7f1963f5288807136b61714a1373e9c
|
|
| BLAKE2b-256 |
adab95a798341c174332b780b3683df4234a1e78c429e47eb223ae3c7a6b7718
|