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.

Files for truecolor, version 1.0b2
Filename, size File type Python version Upload date Hashes
Filename, size truecolor-1.0b2-py2.py3-none-any.whl (5.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size truecolor-1.0b2.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page