Skip to main content

A Truecolor terminal library for Python

Project description

A True color terminal library for Python — similar in function to the termcolor library. It allows one to output color text in supported terminals using escape codes.

Available functions

  • bold - Return a bolder version of a color tuple.

  • dim - Return a dimmer version of a color tuple.

  • hex_to_rgb - Return a tuple of (red, green, blue) for a color given as #rrggbb.

  • rgb_to_hex - Return color as #rrggbb for the given color tuple or component values.

  • fore_text - Return text string with foreground only set.

  • color_text - Return text string with foreground and background set.

  • fore_print - Print text string with foreground only set.

  • color_print - Print text string with foreground and background set.

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

truecolor-1.0b2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

truecolor-1.0b2-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file truecolor-1.0b2.tar.gz.

File metadata

  • Download URL: truecolor-1.0b2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for truecolor-1.0b2.tar.gz
Algorithm Hash digest
SHA256 a591652790e672c8435850665ec18e7d1a06c74aa0658286701c920006091efd
MD5 5771b528a132ae4429e6c7991b61bad2
BLAKE2b-256 b5817499faa629011d8bb605150a09a5e7381fd9643b8e37010f25945fa690e5

See more details on using hashes here.

File details

Details for the file truecolor-1.0b2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for truecolor-1.0b2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cb2b68eb4b8a532d19170c957ad68c2324b72e4771b2efc43566642eac60ff3f
MD5 cae113aa27688627dd9bb5e254f135ad
BLAKE2b-256 f683eba08c9bae85263bcece861c4625a5fb200c3eb3de6ee43c1e495911804c

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