Printed Colors
Installation
To install, just simply run:
pip install printedcolors
Usage
The usage is simple. You can use it like this in normal prints:
import printedcolors
print(printedcolors.Color.fg.red + printedcolors.Color.bold + "I'm red and bold!" + printedcolors.Color.reset)
But if you want to keep it even more simple, You can do it like this:
import printedcolors
Color = printedcolors.Color
fg = Color.fg
print(fg.red + "Hi! I'm red!" + Color.reset)
Color.reset is recommended to not affect future prints.
Both Color and Colour can be used.
Supported Colours/Colors
FG (Foreground) Colors/Color:
| Color Name | Code Example |
|---|---|
| Black | Colour.fg.black |
| Red | Colour.fg.red |
| Green | Colour.fg.green |
| Yellow | Colour.fg.yellow |
| Blue | Colour.fg.blue |
| Magenta | Colour.fg.magenta |
| Cyan | Colour.fg.cyan |
| Light Grey | Colour.fg.lightgrey |
| Dark Grey | Colour.fg.darkgrey |
| Light Red | Colour.fg.lightred |
| Light Green | Colour.fg.lightgreen |
| Light Yellow | Colour.fg.lightyellow |
| Light Blue | Colour.fg.lightblue |
| Light Magenta | Colour.fg.lightmagenta |
| Light Cyan | Colour.fg.lightcyan |
BG (Background) Colours/Color:
| Color Name | Code Example |
|---|---|
| Black | Colour.bg.black |
| Red | Colour.bg.red |
| Green | Colour.bg.green |
| Yellow | Colour.bg.yellow |
| Blue | Colour.bg.blue |
| Magenta | Colour.bg.magenta |
| Cyan | Colour.bg.cyan |
| Light Grey | Colour.bg.lightgrey |
Misc (Other):
| Style Name | Code Example |
|---|---|
| Bold | Colour.bold |
| Dim | Colour.dim |
| Underline | Colour.underline |
| Reverse | Colour.reverse |
| Strikethrough | Colour.strikethrough |
| Invisible | Colour.invisible |
| Reset | Colour.reset |
As a reminder, both Colour and Color can be used. As both is defined in the library.
Metadata
Release files for printedcolors 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 | |
|---|---|---|---|---|
| printedcolors-1.0.0.tar.gz | 2.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| printedcolors-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.3 kB
Release files / printedcolors-1.0.0.tar.gz
| Download URL | printedcolors-1.0.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75b997ac412855368a2d9f1684d5b2c0fc3187b5f7cd8adc6e30d715802ab77d
|
|
BLAKE2b-256 checksum How to use checksums |
95e68cc6867df18ac760ea3c65ba88640662d2b822bce4db1313fcb554256143
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / printedcolors-1.0.0-py3-none-any.whl
| Download URL | printedcolors-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9801e8280effeae161917f9b5f31a96cc8215b5aaa87576c02ad8c4c55df095f
|
|
BLAKE2b-256 checksum How to use checksums |
9d98161a25c5837a2e8a14c7dd2ad971fa7cfdb9c5b9afd67df421cedf99e354
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for printedcolors 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.