A library for coloring texts in the terminal
Project description
TTPALETTE
A library for coloring texts in the terminal
This library works with ANSI escape code
256 Color table
The photo is from here
Install
pip install ttpalette
Examples
Use a specific color
from ttpalette import ttpalette
ttpalette.BackColor().list_costum_colors(14)
ttpalette.Color().list_costum_colors(14)
Use a solid color
from ttpalette import ttpalette
ttpalette.Color.RED()
ttpalette.BackColor.RED()
Fixed colors available
BLACK
RED
GREEN
YELLOW
BLUE
MAGENTA
CYAN
WHITE
RESET
Back to normal
from ttpalette import ttpalette
ttpalette.Color.RESET
ttpalette.BackColor.RESET
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
ttpalette-0.1.1.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ttpalette-0.1.1.tar.gz.
File metadata
- Download URL: ttpalette-0.1.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b26b9b2809707bba972359a5cca8f6f8c7a1c4e5c33f975b720b2427cddc1af0
|
|
| MD5 |
42170a16de8c66ddb2f7f79025ba09f3
|
|
| BLAKE2b-256 |
4c150781d48f3d0edbfdbd854b45ce9dd2a2533c8e643a898a537dba516006d1
|
File details
Details for the file ttpalette-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ttpalette-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f37c6ac07b0237a617bf62579bf5777c33fa557b7943359e7539b7bf3367691c
|
|
| MD5 |
378702d466ca1dd742de8a2d34c2be4b
|
|
| BLAKE2b-256 |
2ca47c8a6408785e9ab3669e5ffee4106788b10b59387a7e7bd1f7591b095ffc
|