Skip to main content

Quick python reference for terminal color escape codes

Project description


PyPI version Build Status

Quick python reference for terminal color escape codes


Install options:

  • Install the package clicolor

  • Add as a submodule

git submodule add
  • Or just copy and LICENSE somewhere

Then from clicolor.cli import CLI, ...


print(f"{CLI.BG_YELLOW}{CLI.GREEN}Green on yellow.{CLI.RESET}")

Green text on yellow background example

print(f"{CLI.BOLD}{CLI.RED}Bold red.{CLI.RESET}")

Bold red text example

print(f"{,0,0)}{CLIT.fg(255,99,71)}Truecolor tomato red on maroon red background{CLI.RESET}")

Truecolor red example

use to run a variety of tests including modifiers, 8/16 colors, 256 colors and Truecolors.

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 clicolor, version 1.0.7
Filename, size File type Python version Upload date Hashes
Filename, size clicolor-1.0.7-py3-none-any.whl (7.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size clicolor-1.0.7.tar.gz (6.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page