Skip to content

Latest version Python 3.10 | 3.11 | 3.12 or higher BSD-3-Clause license Codecov CodeQL Test Downloads

Colorist for Python 🌈#

Introduction#

Lightweight Python package that makes it easy and fast to print colored text in the terminal.

How It Works#

Basics#

Colorist is intended to be easy to use. Imagine you want to print a mix of colors in the terminal:

% This is RED!

Once installed, simply import the colorist module and start printing colored text with the Color class:

Python
1
2
3
from colorist import Color

print(f"This is {Color.RED}RED{Color.OFF}!")

Varied Color Palette#

Or simply print a full line of colored text from a varied palette of color:

Python
1
2
3
from colorist import bright_yellow

bright_yellow("This is BRIGHT YELLOW!")

How it appears in the terminal:

% This is BRIGHT YELLOW!

Ready to try more options and features? Let's get started.