Skip to main content

Simple python library for color and formatting to terminal

Project description


Colored, it's a simple Python library for color and formatting in terminal. Collection of color codes and names for 256 color terminal setups. Colored now supports RGB color mode. As "true color" graphic cards with 16 to 24 bits of color became common, applications began to support 24-bit colors. Terminal emulators supporting setting 24-bit foreground and background colors with escape sequences include Xterm, KDE's Konsole, and iTerm, as well as all libvte based terminals, including GNOME Terminal.

The colors work with most terminals and terminals emulators. ANSI/VT100 escape sequences can be used in every programming languages.

Colored is powerful and easy to use:

>>> from colored import Fore, Back, Style
>>> Style.reset
>>> Fore.rgb('100%', '50%', '30%')
>>> print(f'{Fore.white}{}Colored is Awesome!!!{Style.reset}')

!!! success

>>> Colored is Awesome!!!


Open up a terminal and install colored with pip command:

$ pip install colored

Alternatively, you can grab the latest source code from GitLab:

$ git clone
$ cd colored
$ pip install .


The User Guide is the place to go to learn how to use the library.

The API Reference documentation provides API-level documentation.


colored is made available under the MIT License. For more details, see here.


!!! info We happily welcome contributions!


Did you know that we developers love coffee?


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

colored-2.2.4.tar.gz (13.2 kB view hashes)

Uploaded source

Built Distribution

colored-2.2.4-py3-none-any.whl (16.1 kB view hashes)

Uploaded py3

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