Library for Python with colors, styles, support rgb and 256 colors for terminal
Project description
TerminalRGB - trgb
A library for styling text in a terminal using ANSI-codes for Python
Functional:
Colors, Styles, RGB and 256 palette
import:
'''bash
pip install tcx
'''py
from tcx import red, blue, bold, rgb ...
using:
'''py
print(red("Print red text"))
--------------------------- or
style = red("Print red text")
print(red)
the ability to stack styles:
WARNING: the interpreter may consider your action to be an error - use type ignore
'''py
print(bold + rgb(1,1,1)("Hello World!"))
--------------------------- or
style = bold + rgb(4, 239, 8)
print(style("Hello World!"))
you can stack as many styles as you want:
'''py
style = bg_rgb(1,1,1) + rgb(2,2,2) + italic
print(style("text"))
I wish you a pleasant experience. Good luck!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
trgb-0.1.0.tar.gz
(3.2 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
trgb-0.1.0-py3-none-any.whl
(4.0 kB
view details)
File details
Details for the file trgb-0.1.0.tar.gz.
File metadata
- Download URL: trgb-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8465f61122e740bb99e927e0053c5894fc70fbb6f84598cf02f106924fc3cac
|
|
| MD5 |
32b2bbc2f28bd2f5a1c169d28804cdb2
|
|
| BLAKE2b-256 |
ceb50b18bd43a6857144e090fc0cdd37da7c095d00ac33b1f3a742148e0c5101
|
File details
Details for the file trgb-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trgb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc03d98865e2874ce45ce29ab215e0c50d09c4def5db18e60394253cdf7589e2
|
|
| MD5 |
d6f125c78c4cf028db0181d1cf83f8dd
|
|
| BLAKE2b-256 |
dc58ad702fa62aa4840986e59ac8bd3b96aeb8e60b6fb768726712bff86926a6
|