Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trgb-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for trgb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d8465f61122e740bb99e927e0053c5894fc70fbb6f84598cf02f106924fc3cac
MD5 32b2bbc2f28bd2f5a1c169d28804cdb2
BLAKE2b-256 ceb50b18bd43a6857144e090fc0cdd37da7c095d00ac33b1f3a742148e0c5101

See more details on using hashes here.

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

Hashes for trgb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc03d98865e2874ce45ce29ab215e0c50d09c4def5db18e60394253cdf7589e2
MD5 d6f125c78c4cf028db0181d1cf83f8dd
BLAKE2b-256 dc58ad702fa62aa4840986e59ac8bd3b96aeb8e60b6fb768726712bff86926a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page