polidoro-py-colors

Set of constants to simplify print with colors.


License
Unlicense
Install
pip install polidoro-py-colors==1.0.0

Documentation

Colors Latest

Set of constants to simplify print with colors

How to use:

from colors import *
print(Red, 'Error')

image

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.')

image

Unless you really wanted to

print(Blue, 'Color on', Color_Off, ' Color off')

image

SIDE EFFECTS

The wrapper removes single spaces strings (" ") so this:

print('Hello', 'World')

Will print: HelloWorld instead of Hello World.