color module#

class color.Colors#

Bases: object

Represents a class that contains colors for the console

BOLD = '\x1b[1m'#
ENDC = '\x1b[0m'#
FAIL = '\x1b[91m'#
HEADER = '\x1b[95m'#
OKBLUE = '\x1b[94m'#
OKCYAN = '\x1b[96m'#
OKGREEN = '\x1b[92m'#
UNDERLINE = '\x1b[4m'#
WARNING = '\x1b[93m'#
error()#

Returns the text in red color

Parameters:

text (str) – The text to color

info()#

Returns the text in blue color

Parameters:

text (str) – The text to color

ok()#

Returns the text in green color

Parameters:

text (str) – The text to color

warning()#

Returns the text in yellow color

Parameters:

text (str) – The text to color