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 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 Distribution

trgb-0.1.1.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.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file trgb-0.1.1.tar.gz.

File metadata

  • Download URL: trgb-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 fad7626d1241135e90df4bcd4c269dca59d2f1a6c9ff3f81d64f40725d17a56e
MD5 dc965122155f633f52d7ad53d9db1e74
BLAKE2b-256 79c6f08e7a57e95615c29c01f2951b7309ec433f1402d30c5a18ca7550ce908f

See more details on using hashes here.

File details

Details for the file trgb-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: trgb-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0623f77df0cc8fe9cd91999dc04189b4798bd75f157079f3879851dc2cb7a26
MD5 94720a2163da1644f3e11bc49ae39186
BLAKE2b-256 58f62c14afea95cec3f5822152761631f656bc18c9aab8485e945cefb0c160f4

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