Simple module to colorize text on terminal by Tiago Danin.
Simple module to colorize text on terminal :D
Written for Python3.x
But work with python2.7
Open terminal:
git clone https://github.com/TiagoDanin/PythonColorize.git
sudo python3 setup.py install
or via pip:
sudo pip3 install PythonColorize
Colors | Styles |
---|---|
black | bold |
red | dark |
green | underline |
yellow | negative |
blue | hide |
magenta | |
cyan | |
white |
Params | Result |
---|---|
bg_ | background |
lg_ | light |
bg lg | background & Light |
Module function:
PythonColorize.colors.<[param][style]_>[name]
<.> Optional
PythonColorize.colorize(text=[text], color=[color], style=[style], light=[True|False], background=[True|False])
Module File
Example File
Suggestions and Support New Issue
For stable versions to access Releases
GNU General Public License v3 (GPLv3)
Copyright (c) 2016 Tiago Danin
Python
2