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

# `celery.utils.term`

Terminals and colors.

class celery.utils.term.colored(*s: object, **kwargs: Any)

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