diplomat.utils.pretty_printerΒΆ

Provides utilities for printing results to the console in a well formatted manner.

Module Attributes

printer

Default instance of the indent printer, with the default settings.

Classes

IndentPrinter(output, indent, term_width)

Create a custom printing function that matches python's print function, but also properly handles indented lines in the CLI by indenting each following line when a single line in the printout can't be displayed on a single line in the CLI.