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 trgb
'''py
from trgb 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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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.3-py3-none-any.whl
(6.7 kB
view details)
File details
Details for the file trgb-0.1.3-py3-none-any.whl.
File metadata
- Download URL: trgb-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.7 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 |
2e46924a56a3858d34aef7f8dbcd9eec2c5303085cd8d71ab358aa4b33b40807
|
|
| MD5 |
154ea7f96bcc3dd89c3ec122b320e09a
|
|
| BLAKE2b-256 |
1d08827dfab44c5d308ba0c8e974ba63f247e33b59fa8532f6d2a127a066b2aa
|