This document describes an older version of Celery (2.1). For the latest stable version please go here.

Terminal Utilities - celery.utils.term

term utils.

>>> 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 ")))
class celery.utils.term.colored(*s, **kwargs)
black(*s)
blue(*s)
bold(*s)
bright(*s)
cyan(*s)
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)
celery.utils.term.fg(s)

Previous topic

Utilities - celery.utils

Next topic

Time and Date Utilities - celery.utils.timeutils

This Page