watson.console.colors

watson.console.colors.fail(string, terminate=True)[source]

Wraps a string in the terminal colors for fail.

Example:

fail('some text')  # colored text in terminal
Parameters:
  • string (string) – The string to wrap
  • terminate (boolean) – Whether or not to terminate the color
watson.console.colors.header(string, terminate=True)[source]

Wraps a string in the terminal colors for headers.

Example:

header('some text')  # colored text in terminal
Parameters:
  • string (string) – The string to wrap
  • terminate (boolean) – Whether or not to terminate the color
watson.console.colors.ok_blue(string, terminate=True)[source]

Wraps a string in the terminal colors for ok blue.

Example:

ok_blue('some text')  # colored text in terminal
Parameters:
  • string (string) – The string to wrap
  • terminate (boolean) – Whether or not to terminate the color
watson.console.colors.ok_green(string, terminate=True)[source]

Wraps a string in the terminal colors for ok green.

Example:

ok_green('some text')  # colored text in terminal
Parameters:
  • string (string) – The string to wrap
  • terminate (boolean) – Whether or not to terminate the color
watson.console.colors.warning(string, terminate=True)[source]

Wraps a string in the terminal colors for warning.

Example:

warning('some text')  # colored text in terminal
Parameters:
  • string (string) – The string to wrap
  • terminate (boolean) – Whether or not to terminate the color