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.3.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file exencolor-1.1.3.tar.gz
.
File metadata
- Download URL: exencolor-1.1.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.15.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 248e12759db8c5c6d9a120699fdda61932b41c36f984fccfdbcd7c03ad1ae5fa |
|
MD5 | 541451d2adddd9c059caca406b8b9477 |
|
BLAKE2b-256 | 78f3254dd95726c58c8a19cd1e0227c12817b7371e78a97b2ff8759d1684c50b |
File details
Details for the file exencolor-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: exencolor-1.1.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.15.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f59c558bf4937443a27b15e6ff2245280ede6e1eeccbac95dae21b53330bef5 |
|
MD5 | 74f1044650672ae7c2c511ff50df49da |
|
BLAKE2b-256 | f9bc463d112892c23876d5728c5e04c7472db437db2ded05e36779966d82ac23 |