A modern module for colored output.
Project description
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))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
exencolor-1.1.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for exencolor-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e9fc23977eb9e5134cbb4b241b6bd3c2efb8444ef4bcaf67eae217d76992429 |
|
MD5 | 36a86e97611d8ae08c85ee98b646d1ba |
|
BLAKE2b-256 | bdc57904f98471c56304b8174a3a40457e2e93ac4d61dc8d77c0637cf047f347 |