Skip to main content

a small colorfull module

Project description

Chroma Console

Chroma console is a python package for adding color and style to terminal text output using ANSI escape codes.

Installation

pip install chromaconsole

Functions

Style.bold()
Style.italic()
Style.underline()
Style.strikethrough()
Style.reset()
Style.minecraft(*args)
Color.text(*args)
Color.background(*args)

Example usage

from chromaconsole import Color, Style

print(f"{Color.text(r, g, b)}here is RGB colored text{Style.reset()}")
print(f"{Color.background(r, g, b)}here is RGB colored background{Style.reset()}")

print(f"{Color.text('#rrggbb')}here is HEX colored text{Style.reset()}")
print(f"{Color.background('#rrggbb')}here is HEX colored background{Style.reset()}")

print(f"{Style.bold()}Bold {Style.reset()}")
print(f"{Style.italic()}Italic {Style.reset()}")
print(f"{Style.underline()}Underline {Style.reset()}")
print(f"{Style.strikethrough()}Strikethrough {Style.reset()}")

print(f"{Style.bold()}{Style.italic()}bold+italic {Style.reset()}")
print(f"{Style.minecraft('§','§ahello §4world§r')}")

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

chromaconsole-0.2.7.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

chromaconsole-0.2.7.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file chromaconsole-0.2.7.2.tar.gz.

File metadata

  • Download URL: chromaconsole-0.2.7.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for chromaconsole-0.2.7.2.tar.gz
Algorithm Hash digest
SHA256 c7a5775f44c919abe54ad874306dadfb20a2d747c780a4ccfed28ad5a547e466
MD5 119e60c5db9da73f64e451eb71c893bd
BLAKE2b-256 9ca9732bbc185d007ddcddc2ab982456934a5952516f6d01b4f5607d9de7ec37

See more details on using hashes here.

File details

Details for the file chromaconsole-0.2.7.2-py3-none-any.whl.

File metadata

File hashes

Hashes for chromaconsole-0.2.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8db7fd35a88aad3afb4237fe4b6a55c4770306cd8484f139771232bd83012a0d
MD5 40380d08db11100eab85fec8fb9362dd
BLAKE2b-256 aa682f5f3ca49da15825ed8be38b64c6552c2426d2396045e78249fcff623c42

See more details on using hashes here.

Supported by

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