jnrbase.colourise
Note
This module requires click, which pip
users can install with the jnrbase[colour]
requirement.
COLOUR
_colourise
fail
info
success
warn
pfail
pinfo
psuccess
pwarn
from jnrbase import colourise from jnrbase.colourise import fail, info, success, warn
colourise.COLOUR = False
>>> fail('Error!') 'Error!' >>> info('Cats are not dogs') 'Cats are not dogs' >>> success('Excellent') 'Excellent' >>> warn('Ick') 'Ick'