colorise is a Python module for printing colored text in terminals.
You can install it via pip.
$ pip install colorise
Features¶
- Supports 8, 16, 88, 256 colors and true-color.
- Colors can be specified by name, index, hexadecimal, HLS, HSV or RGB formats.
- Custom color format akin to Python 3.0 string formatting.
- Automatically find the closest color based on the terminal’s capabilities.
- Cross-platform: Works on Mac, Linux and Windows systems.