dcase_util.ui.FancyPrinter

class dcase_util.ui.FancyPrinter(colors=True)[source]

Printer class

Constructor

Parameters
colorsbool

Using colors or not Default value True

Returns
nothing
__init__(colors=True)[source]

Constructor

Parameters
colorsbool

Using colors or not Default value True

Returns
nothing

Methods

__init__([colors])

Constructor

data([field, value, unit, indent, level])

Data line logger

debug([text, indent])

Debug line logger

error([text, indent])

Error line logger

foot([text, time, item_count, indent, level])

Footer, logged at info level

info([text, indent])

Info line logger

line([field, indent, level])

Generic line logger Multiple lines are split and logged separately

row(*args, **kwargs)

Table row

row_average([label])

Table row showing internally accumulated average of previous row values per column

row_reset()

Reset table row formatting

row_sep([separator_char])

Table separator row

row_sum([label])

Table row showing internally accumulated sum of previous row values per column

section_header(text[, indent, level])

Section header, logged at info level

sep([level, length, indent])

Horizontal separator, logged at info level

sub_header([text, indent, level])

Sub header

table([cell_data, column_headers, ...])

Data table

title(text[, level])

Title, logged at info level

Attributes

logger