tabensemb.utils.utils.pretty#

tabensemb.utils.utils.pretty(value, htchar='\t', lfchar='\n', indent=0)[source]#

Represent a dictionary, a list, or a tuple by a string. https://stackoverflow.com/questions/3229419/how-to-pretty-print-nested-dictionaries

Parameters:
value

A dictionary, a list, or a tuple to be formatted.

htchar

The string for indents.

lfchar

The string between two lines.

indent

The number of indents.

Returns:
str

The formatted representation of value.