Skip to main content

print-extended

PyPI CI codecov

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.group and print.endgroup to 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')
  • eprint to 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

Metadata

Release files for python-print-extended 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 python-print-extended 0.1.1
File Size Uploaded
python-print-extended-0.1.1.tar.gz 3.9 kB Details

Built distribution (wheel)

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

Total release size: 8.1 kB

Release files / python-print-extended-0.1.1.tar.gz

Download URL python-print-extended-0.1.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b2078b7b6d38bb067fa57f9e24ef454e9ff3c38af6792f7ffbe9cae37d3dd933
BLAKE2b-256 checksum
How to use checksums
eff2251465fef800c81ad5dbba3f69b87b17a4f3768a2c50687ebe06134c4e9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

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

Download URL python_print_extended-0.1.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bf6dcd798440c65461373c410803fabbd3584dc3e553b289fbe3efe26dd0dda
BLAKE2b-256 checksum
How to use checksums
e62f2575878ac6d97f7f40b6094fb908ae0d01c24651385d6e72db022ad8ce87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

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