Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiagodanin/pythoncolorize
Simple module to colorize text on terminal
https://github.com/tiagodanin/pythoncolorize
pip python python3 terminal
Last synced: 24 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-11T18:45:21.000Z (over 5 years ago)
- Last Synced: 2024-10-13T09:41:26.787Z (about 1 month ago)
- Topics: pip, python, python3, terminal
- Language: Python
- Homepage: https://TiagoDanin.github.io/PythonColorize/
- Size: 132 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## PythonColorize [![Build Status](https://travis-ci.org/TiagoDanin/PythonColorize.svg?branch=master)](https://travis-ci.org/TiagoDanin/PythonColorize) [![GPLv3](https://img.shields.io/aur/license/yaourt.svg?maxAge=2592000)](https://github.com/TiagoDanin/PythonColorize/blob/master/LICENSE) [![Pypi](https://img.shields.io/badge/PythonColorize-Pypi-yellow.svg)](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