tcolopy is a Python library to apply true color for terminal text.
Project description
Summary
tcolopy is a Python library to apply true color for terminal text.
Usage
Library usage
- Sample Code:
from tcolorpy import tcolor print(tcolor("tcolopy example", color="#ee1177", styles=["bold", "italic", "underline"]))
- Output:
CLI usage
You can also use tcolorpy via CLI:
$ python -m tcolorpy "tcolopy example" -c "#ee1177" -s bold,italic,underline
Output examples
Apply true color and styles to text:
You can also specify by color names:
Installation
pip install tcolorpy
Dependencies
Python 3.5+ No external dependencies.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tcolorpy-0.0.1.tar.gz
(291.6 kB
view details)
Built Distribution
File details
Details for the file tcolorpy-0.0.1.tar.gz
.
File metadata
- Download URL: tcolorpy-0.0.1.tar.gz
- Upload date:
- Size: 291.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29be11202b2a2aa21cd0ec6ba5152d0d56ad5e484ab72e2c8648a88897338cf7 |
|
MD5 | 4e8de862d136f7da2d99df38ca90573c |
|
BLAKE2b-256 | 65b8a1b08a106a13bab0a5cab0442393b9253c098d89d3b84ec7f0c2250685b4 |
Provenance
File details
Details for the file tcolorpy-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: tcolorpy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2880ac53fd0eb61e3c8be11f74d9f6dc8a897f1d738c2f2c97f32303ab3f5c83 |
|
MD5 | 29023d1f0a4535b792f9b18372ad9d30 |
|
BLAKE2b-256 | 36101d04d72178a4838b34b27e478db44d895b70653b2a9fd376b42c9a2ce580 |