Print Python strings with interpolated colors.
>>> from icolor import cprint, cformat >>> cformat("This is #RED;a red string.") 'This is \\x1b[31ma red string.\\x1b[0m' >>> cprint("This is #BLUE;a blue string.", reset=False) 'This is \\x1b[34ma blue string.'
Also included is a
cprint command, which as a convenience prints the
result of the
$ easy_install icolor
$ pip install icolor
Variants on the above include
-U option to upgrade and
sudo to elevate
This package is licensed under the MIT License, included.