Beginner-friendly pretty printing
Project description
print-extended
An extended version of the print function.
The intent is to make it easy to print pretty outputs, with an interface that Python beginners who just made their first "Hello World" can use.
You can always use pprint, sys.stderr, etc., and probably should for
complex usage. As stated, this is to be beginner-friendly. Functionality
will be sacrificed for ease-of-use.
Features
print.groupandprint.endgroupto create indentation levels- foreground colors
print.red('foo')print.green('foo')print.blue('foo')print.yellow('foo')print.magenta('foo')print.cyan('foo')print.rgb(r, g, b)('foo')
- background colors
print.on_red('foo')print.on_green('foo')print.on_blue('foo')print.on_yellow('foo')print.on_magenta('foo')print.on_cyan('foo')print.on_rgb(r, g, b)('foo')
- text styles
print.bold('foo')print.italic('foo')print.underline('foo')- Also chainable!
print.red.bold.italic('error')
eprintto simplify printing to STDERR
Development
# Activate virtual environment
python -m pip install -U pip
python -m pip install .
python -m pip install -r requirements-dev.txt
pre-commit install
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 python-print-extended-0.1.1.tar.gz.
File metadata
- Download URL: python-print-extended-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2078b7b6d38bb067fa57f9e24ef454e9ff3c38af6792f7ffbe9cae37d3dd933
|
|
| MD5 |
46868e6f3bfec424da70bd21a26e7fd7
|
|
| BLAKE2b-256 |
eff2251465fef800c81ad5dbba3f69b87b17a4f3768a2c50687ebe06134c4e9d
|
File details
Details for the file python_print_extended-0.1.1-py3-none-any.whl.
File metadata
- Download URL: python_print_extended-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bf6dcd798440c65461373c410803fabbd3584dc3e553b289fbe3efe26dd0dda
|
|
| MD5 |
bd006c21d2cdb72bbde582729aadb366
|
|
| BLAKE2b-256 |
e62f2575878ac6d97f7f40b6094fb908ae0d01c24651385d6e72db022ad8ce87
|