celery.utils.term
celery.utils.term
Terminals and colors.
class celery.utils.term.colored(\s, **kwargs*)[源代码]
Terminal colored text.
Example::
>>> c = colored(enabled=True)
>>> print(str(c.red('the quick '), c.blue('brown ', c.bold('fox ')),
... c.magenta(c.underline('jumps over')),
... c.yellow(' the lazy '),
... c.green('dog ')))
black(\s*)[源代码]
blink(\s*)[源代码]
blue(\s*)[源代码]
bold(\s*)[源代码]
bright(\s*)[源代码]
cyan(\s*)[源代码]
embed()[源代码]
green(\s*)[源代码]
iblue(\s*)[源代码]
icyan(\s*)[源代码]
igreen(\s*)[源代码]
imagenta(\s*)[源代码]
ired(\s*)[源代码]
iwhite(\s*)[源代码]
iyellow(\s*)[源代码]
magenta(\s*)[源代码]
no_color()[源代码]
node(s, op)[源代码]
red(\s*)[源代码]
reset(\s*)[源代码]
reverse(\s*)[源代码]
underline(\s*)[源代码]
white(\s*)[源代码]
yellow(\s*)[源代码]