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
Requires a uv project. If you don't have one yet, create it with uv init first. Then run your scripts in the project environment with uv run python script.py.
uv add colorist
Homebrew is available for macOS and Linux. It installs the package for its own Python 3.11, so run your scripts with "$(brew --prefix python@3.11)/bin/python3.11" script.py.
brew tap jakob-bagterp/colorist
brew install colorist
Find more details in the installation guide.
2. First Script#
You're now ready to go:
| Python | |
|---|---|
1 2 3 4 5 | |
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.
Support the Project#
If you have already downloaded and tried the package – maybe even used it in a production environment – perhaps you would like to support its development?
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 makes a difference, whether you buy a coffee or support with a monthly donation. Find your tier here:
Thank you for your support! 🙌