Python library to improve console printing by adding context to your prints. It makes your console much cleaner, and you won't have to worry about making your prints beautiful.
Installation:
pip install context_printer
Basic usage example:
from context_printer import ContextPrinter as Ctp
Ctp.enter_section('Main section', color='blue')
Ctp.print('Text in main section')
for i in range(3):
Ctp.enter_section('Subsection {}'.format(i + 1))
Ctp.print('Text in subsection')
Ctp.print('Text in subsection')
Ctp.exit_section()
Ctp.exit_section()
The above example will print the following:
Metadata
Release files for context-printer 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| context_printer-1.3.0.tar.gz | 4.3 kB | Without provenance | Details for context_printer-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| context_printer-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for context_printer-1.3.0-py3-none-any.whl |
Total release size: 10.4 kB
Release files / context_printer-1.3.0.tar.gz
| Download URL | context_printer-1.3.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
440579f8f63690cd25456fc5f3fe5497a63a01830dc26784c74f1a2e86c635dc
|
|
BLAKE2b-256 checksum How to use checksums |
cd3bd34947aeaebe5db0013813bb3effd4d42db7d5bdcd90690f87764a05607a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Release files / context_printer-1.3.0-py3-none-any.whl
| Download URL | context_printer-1.3.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bddad816b6244fafb507b6cbd1698869de697d8d855ca49fc1b422d8675052bb
|
|
BLAKE2b-256 checksum How to use checksums |
d83ac7451140b50afd23320f67bd8964ae8d2f67a7a8a291a5019bdf1681d344
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Security for context-printer 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.