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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

trgb-0.1.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trgb-0.1.2-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

Hashes for trgb-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 029d61656c00c1c6a017fb56a63634e55dfecea90d734de9de178391180bcffb
MD5 5a0542e58f7c7dcbba23ddcec876a244
BLAKE2b-256 85be667ebcbe747127af80cfbb299078381a675bca0f02a98ce21ec5ee473c6c

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