Color Codes
colorcodes.py is a module that helps you print color formatted text.
You can do this in many ways
Inserting colors into strings
You can use string formatting and the ColorCode objects to print colored text
from colorcodes import blue
print("Hello, {}world".format(blue))
This is good for simple, permanent color changes.
You can also combine these with the + operator
from colorcodes import blue, bold, uline
print("Hello, {}world".format(blue + bold + uline))
If you do not need to intermingle color and style then you can use individual ColorCodes print() method
import colorcodes
colorcodes.magenta.print("This text is all magenta")
These can also be combined using the + operator
import colorcodes
(colorcodes.magenta + colorcodes.bold).print("This text is all magenta")
Finally, you can use the cfs (short for Color Format String) wrapper class to print colored values with format specifiers
#normal #red #mag #black
print("Welcome {:+r} {:m}{:k}".format(cfs('to the'), cfs('Jungle'), cfs('!')))
Metadata
Release files for colorcodes-elunico 1.0.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 |
|---|---|---|---|---|
| colorcodes-elunico-1.0.0.tar.gz | 2.8 kB | Without provenance | Details for colorcodes-elunico-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| colorcodes_elunico-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for colorcodes_elunico-1.0.0-py3-none-any.whl |
Total release size: 5.7 kB
Release files / colorcodes-elunico-1.0.0.tar.gz
| Download URL | colorcodes-elunico-1.0.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87693e41b07eef01f70a44a1a0f8f89a022f57ad83981104a8e24a50524b0cfe
|
|
BLAKE2b-256 checksum How to use checksums |
7ce6f0a77d6b4ce3f4ec18be4b4428b6e60d9ba843e5602cd13031a9026d7145
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Release files / colorcodes_elunico-1.0.0-py3-none-any.whl
| Download URL | colorcodes_elunico-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1674e78c1a89cbc9427b80ea9a7610395bc765b7707a20d82bb5c819f5844ba4
|
|
BLAKE2b-256 checksum How to use checksums |
a5560466fb8198be679cf6e578ff94d4d333d4cc979dad98bd81489fd64fcf01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Security for colorcodes-elunico 1.0.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.