Skip to main content

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!

Metadata

Release files for trgb 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for trgb 0.1.3
File Interpreter ABI Platform Actions
trgb-0.1.3-py3-none-any.whl Python 3 none any Details for trgb-0.1.3-py3-none-any.whl

Release files / trgb-0.1.3-py3-none-any.whl

Download URL trgb-0.1.3-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e46924a56a3858d34aef7f8dbcd9eec2c5303085cd8d71ab358aa4b33b40807
BLAKE2b-256 checksum
How to use checksums
1d08827dfab44c5d308ba0c8e974ba63f247e33b59fa8532f6d2a127a066b2aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for trgb 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page