Colorist for Python 🌈#
What Is Colorist?#
Lightweight Python package that makes it easy and fast to print colored text in the terminal.
How It Works#
Basic Usage#
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 |
|
You can use the same method to apply other colors to text.
Varied Color Palette#
Or simply print a full line of colored text from a varied palette of colors:
Python | |
---|---|
1 2 3 4 5 6 |
|
How it appears in the terminal:
% This is BLUE!
% This is GREEN!
% This is BRIGHT MAGENTA!
% This is BRIGHT YELLOW!
Background Colors#
It's also possible to apply background colors to text:
Python | |
---|---|
1 2 3 |
|
How it appears in the terminal:
% This is RED!
You can use the same method to apply other background colors to text.
Next Steps#
Ready to try more options and features? Let's get started with the installation or check out the user guide.
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, no matter the size, makes a difference.
Thank you for your support! 🙌