Ansicolors minimal example
ansicolors_example.py
from colors import black, red, blue
# Print red example
print(red("test"))
# Print bold example
print(black("test", style="bold"))
Install the library using
example.sh
pip install -U ansicolors
Check out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow