Skip to content

Get Started with Colorist in 2 Easy Steps 🚀#

Ready to try the easy way to add color to your Python code? Let's get started:

1. Install Colorist for Python Package#

Assuming that Python is already installed, execute this command in the terminal to install the Colorist package:

pip install colorist

Find more details and options in the installation guide.

2. First Script#

You're now ready to go:

Python
1
2
3
4
5
6
from colorist import Color, green

green("This is GREEN!")

print(f"Both {Color.RED}red{Color.OFF}...")
print(f"... and {Color.YELLOW}yellow{Color.OFF} are nice colors")

How it appears in the terminal:

% This is GREEN!
% Both red...
% ... and yellow are nice colors

Next Steps#

Find more usage examples and tutorials in the user guide section.

Become a Sponsor

If you find this project helpful, please consider supporting its development. Your donations will help keep it alive and growing. Every contribution, no matter the size, makes a difference.

Donate on GitHub Sponsors

Thank you for your support! 🙌