color_tools: text color
color_tools is a Python library Color formatting for output in terminal.
Installation
The code is packaged for PyPI, so that the installation consists in running:
pip install color-tools
Usage
from termcolor import colored, cprint
text = colored('Hello, World!', 'red', attrs=['reverse', 'blink'])
print(text)
cprint('Hello, World!', 'green', 'on_red')
Terminal properties
============ ======= ==== ========= ========== ======= =========
Terminal bold dark underline blink reverse concealed
------------ ------- ---- --------- ---------- ------- ---------
xterm yes no yes bold yes yes
linux yes yes bold yes yes no
rxvt yes no yes bold/black yes no
dtterm yes yes yes reverse yes yes
teraterm reverse no yes rev/red yes no
aixterm normal no yes no yes yes
PuTTY color no yes no yes no
Windows no no no no yes no
Cygwin SSH yes no color color color yes
Mac Terminal yes no yes yes yes yes
============ ======= ==== ========= ========== ======= =========
License
New features v1.0
BugFix
- choco install visualcpp-build-tools
Reference
- Jonathan Quiza github.
- Jonathan Quiza RumiMLSpark.
- Jonathan Quiza linkedin.
Metadata
Release files for color-tools 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| color_tools-0.0.2.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| color_tools-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / color_tools-0.0.2.tar.gz
| Download URL | color_tools-0.0.2.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
748119fa9255d4fdb28cedf2fd411e87d2d9bd5c1ba811c545e229f9f9376e16
|
|
BLAKE2b-256 checksum How to use checksums |
951085b1306123d05b621bc1478016595aff54e78f193d7489c0a12017e52577
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
|
Release files / color_tools-0.0.2-py3-none-any.whl
| Download URL | color_tools-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee9fb3550aecfa67d521a1b4244840c1801cfc361b5917804466e69a71466e0c
|
|
BLAKE2b-256 checksum How to use checksums |
85e728f3f18d20f1d94508e7577d9ff1634570d8beb35c35ceeff62dba42f0e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
|