This document describes the current stable version of Celery (5.2). For development docs, go here.

celery.utils.term

Terminals and colors.

class celery.utils.term.colored(*s, **kwargs)[source]

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)[source]
blue(*s)[source]
bold(*s)[source]
bright(*s)[source]
cyan(*s)[source]
embed()[source]
green(*s)[source]
iblue(*s)[source]
icyan(*s)[source]
igreen(*s)[source]
imagenta(*s)[source]
ired(*s)[source]
iwhite(*s)[source]
iyellow(*s)[source]
magenta(*s)[source]
no_color()[source]
node(s, op)[source]
red(*s)[source]
reset(*s)[source]
reverse(*s)[source]
underline(*s)[source]
white(*s)[source]
yellow(*s)[source]