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.0.2.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for exencolor-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc1e9db577b1cc470ddee3f3bf3296d7ae4474a135d42767baf37c7adb223c2a |
|
MD5 | 85290ada7aeeddbe9379b9be5de14788 |
|
BLAKE2b-256 | 4c1bf3dfdba3da4a110106312e6e2717a86fe37681fb061655a564b3ccd6117b |