PyUCC
An Unoptimezed Console Colorization tool written in python.
How to Install
This python project was converted to a pypi package, to install this package you can just use pip.
pip install pyucc
Usage
After installing the package with pip, all you need to do is import it like you would any other package and work on colorizing your precious console. This package relies on ANSI Unicode Escape Sequences to allow for coloring in the rgb space inside your console.
from pyucc import console, colors
# Use cprint or colored print just like you would pythons print method.
console.cprint(colors.vibrant_red, "This text is in red")
# You can also use formatting
console.cprint(f"{colors.vibrant_red}This text is also in red")
# Use .switch for background switch
console.cprint(f"{colors.vibrant_red.switch}This text has a red background")
Basic Red Text
There are some more advanced use cases like registering your own console class:
from pyucc import console, colors, symbols
@console.register(identifier="test")
def test(*values, **optional):
# Optional can be used to access "optional" values like time.
time = optional.get("time")
console.cprint(f"{colors.vibrant_purple.switch} Debug {symbols.reset} {colors.chex('#aaaaaa')}{time}{symbols.reset}", *values)
console.test("This is the test method")
Advanced customized console
Also, cprint can be used as print if you need to.
from pyucc import console
console.cprint("This is just a print")
Metadata
Release files for pyucc 1.7
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 |
|---|---|---|---|---|
| pyucc-1.7.tar.gz | 7.6 kB | Without provenance | Details for pyucc-1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyucc-1.7-py3-none-any.whl | Python 3 | none | any | Details for pyucc-1.7-py3-none-any.whl |
Total release size: 15.8 kB
Release files / pyucc-1.7.tar.gz
| Download URL | pyucc-1.7.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
813d17e6ff5536f6a0060577b328d725113d89759f932414a54a79011d541af1
|
|
BLAKE2b-256 checksum How to use checksums |
e5f11a43e008c910ed3cbb6d59566b59905ea8306839447ae386c7f5eb123eb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / pyucc-1.7-py3-none-any.whl
| Download URL | pyucc-1.7-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
476b9957a47e61a68424a7f6c0a327d735f77c8b8ec46c59e8e798e388bd7600
|
|
BLAKE2b-256 checksum How to use checksums |
dfb16ec8fb85c90d950bd72fdb4cfa7d11143cee44017a5b101df8c6f926a0c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for pyucc 1.7
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.