Colors
Set of constants to simplify print with colors
How to use:
from colors import *
print(Red, 'Error')
The package creates a wrapper in the default print
to remove the color
on every print. So you don't have to worry to put the Color_Off
.
print('This is ', Green, 'Green.')
print('This is not.')
Unless you really wanted to
print(Blue, 'Color on', Color_Off, ' Color off')
SIDE EFFECTS
The wrapper removes single spaces strings (" "
) so this:
print('Hello', 'World')
Will print: HelloWorld
instead of Hello World
.