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

celery.utils.term

Terminals and colors.

class celery.utils.term.colored(*s: object, **kwargs: Any)[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: object) colored[source]
blue(*s: object) colored[source]
bold(*s: object) colored[source]
bright(*s: object) colored[source]
cyan(*s: object) colored[source]
embed() str[source]
green(*s: object) colored[source]
iblue(*s: colored) colored[source]
icyan(*s: object) colored[source]
igreen(*s: object) colored[source]
imagenta(*s: object) colored[source]
ired(*s: object) colored[source]
iwhite(*s: object) colored[source]
iyellow(*s: object) colored[source]
magenta(*s: object) colored[source]
no_color() str[source]
node(s: tuple[object, ...], op: str) colored[source]
red(*s: object) colored[source]
reset(*s: object) colored[source]
reverse(*s: object) colored[source]
underline(*s: object) colored[source]
white(*s: object) colored[source]
yellow(*s: object) colored[source]