ExenColor
A modern module for colored output.
Installation
The module is available for installation from PyPI via pip:
$ pip install exencolor
Examples
Foreground
from exencolor import colored, Color
print(colored("Hello World!", foreground=Color.GREEN))
Background
from exencolor import colored, Color
print(colored("Hello World!", background=Color.BLUE))
Decorations
from exencolor import colored, Decoration
print(colored("Hello World!", decoration=Decoration.UNDERLINE))
from exencolor import colored, Decoration
print(colored("Hello World!", decorations=[Decoration.UNDERLINE, Decoration.BOLD]))
Combined
from exencolor import colored, Decoration, Color
print(colored("Hello World!", foreground=Color.BRIGHT_CYAN, background=Color.BRIGHT_YELLOW, decoration=Decoration.UNDERLINE))
Metadata
Release files for exencolor 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| exencolor-1.1.3.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| exencolor-1.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / exencolor-1.1.3.tar.gz
| Download URL | exencolor-1.1.3.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
248e12759db8c5c6d9a120699fdda61932b41c36f984fccfdbcd7c03ad1ae5fa
|
|
BLAKE2b-256 checksum How to use checksums |
78f3254dd95726c58c8a19cd1e0227c12817b7371e78a97b2ff8759d1684c50b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.10.5 Linux/5.15.0-1014-azure
|
Release files / exencolor-1.1.3-py3-none-any.whl
| Download URL | exencolor-1.1.3-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f59c558bf4937443a27b15e6ff2245280ede6e1eeccbac95dae21b53330bef5
|
|
BLAKE2b-256 checksum How to use checksums |
f9bc463d112892c23876d5728c5e04c7472db437db2ded05e36779966d82ac23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.10.5 Linux/5.15.0-1014-azure
|