Colors

class bandicoot.helper.tools.Colors

The Colors class stores six codes to color a string. It can be used to print messages inside a terminal prompt.

Examples

>>> print Colors.FAIL + "Error: it's a failure!" + Colors.ENDC

Attributes

HEADER Header color.
OKBLUE Blue color for a success message
OKGREEN Green color for a success message
WARNING Warning color (yellow)
FAIL Failing color (red)
ENDC Code to disable coloring. Always add it after coloring a string.