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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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