https://github.com/tiagodanin/pythoncolorize
Simple module to colorize text on terminal
https://github.com/tiagodanin/pythoncolorize
pip python python3 terminal
Last synced: 25 days ago
JSON representation
Simple module to colorize text on terminal
- Host: GitHub
- URL: https://github.com/tiagodanin/pythoncolorize
- Owner: TiagoDanin
- License: gpl-3.0
- Created: 2016-06-25T12:51:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-11T18:45:21.000Z (almost 6 years ago)
- Last Synced: 2025-04-05T02:13:51.138Z (25 days ago)
- Topics: pip, python, python3, terminal
- Language: Python
- Homepage: https://TiagoDanin.github.io/PythonColorize/
- Size: 132 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## PythonColorize [](https://travis-ci.org/TiagoDanin/PythonColorize) [](https://github.com/TiagoDanin/PythonColorize/blob/master/LICENSE) [](https://pypi.python.org/pypi/PythonColorize)
**Simple module to colorize text on terminal :D**## Requires
Written for Python3.xBut work with python2.7
## Setup
Open terminal:`git clone https://github.com/TiagoDanin/PythonColorize.git`
`sudo python3 setup.py install`
or via pip:
`sudo pip3 install PythonColorize`
## DOC
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:
- Get color `PythonColorize.colors.<[param][style]_>[name]`
> <.> Optional
- Colorize `PythonColorize.colorize(text=[text], color=[color], style=[style], light=[True|False], background=[True|False])`
## Pages
Module [File](https://github.com/TiagoDanin/PythonColorize/blob/master/PythonColorize.py)Example [File](https://github.com/TiagoDanin/PythonColorize/blob/master/example.py)
Suggestions and Support [New Issue](https://github.com/TiagoDanin/PythonColorize/issues/new)
For stable versions to access [Releases](https://github.com/TiagoDanin/PythonColorize/releases)
## LICENSE
GNU General Public License v3 [(GPLv3)](https://github.com/TiagoDanin/PythonColorize/blob/master/LICENSE)---
>Copyright (c) 2016 Tiago Danin