This document describes Celery 2.4. For development docs, go here.
celery.utils.term¶
celery.utils.term¶
Terminals and colors.
| copyright: |
|
|---|---|
| license: | BSD, see LICENSE for more details. |
-
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)¶
-
celery.utils.term.fg(s)¶