tepkit.utils.rich_tools#

Attributes#

PANEL_PRESETS

Classes#

TablePrinter

A class wapper for print_table function, avoiding pass the same arguments repeatedly.

Functions#

print_panel(→ rich.panel.Panel)

print_table(→ rich.table.Table)

A function to easily print a dict as a Rich table.

print_args(→ rich.table.Table)

Module Contents#

PANEL_PRESETS
print_panel(content: str, preset: str = None, **kwargs) rich.panel.Panel#
print_table(dictionary: dict, title: str = '', key: str = 'Keys', value: str = 'Values', table_options: dict = None, key_options: dict = None, value_options: dict = None) rich.table.Table#

A function to easily print a dict as a Rich table.

Parameters:
  • dictionary

  • title

  • key

  • value

  • table_options

  • key_options

  • value_options

Returns:

print_args(args) rich.table.Table#