pyexperiment.utils.printers

Provides printing in color

Written by Peter Duerr, inspired by a stackoverflow comment by airmind (http://stackoverflow.com/a/384125/2481888).

pyexperiment.utils.printers.COLOR_SEQ = u'\x1b[1;%dm'[source]

Sequence used to set color for console formatting

pyexperiment.utils.printers.RESET_SEQ = u'\x1b[0m'[source]

Sequence used to reset console formatting

pyexperiment.utils.printers.colorize(string, color_s)[source][source]

Colorize a string

pyexperiment.utils.printers.create_printer(color)[source][source]

Creates the printer for the corresponding color

pyexperiment.utils.printers.print_examples(message=None, *args)[source][source]

Print an example message with every available printer