hifis_surveyval.printing package

Submodules

hifis_surveyval.printing.printer module

This module provides a framework for printing.

class hifis_surveyval.printing.printer.Printer[source]

Bases: object

Class providing printing functionality.

classmethod pretty_print(to_print: List | Dict) None[source]

Print a list or dictionary with pprint.

Args:

to_print (Union[List, Dict]): Data to be printed by PrettyPrint.

classmethod print_dataframe(data_frame: <MagicMock id='139995741607824'>)[source]

Print a pandas dataframe.

Args:

data_frame(pandas.DataFrame): Pandas DataFrame to be printed.

classmethod print_table(table: List[List | Dict], table_headers: List) None[source]

Print a list of lists as ascii table.

The lists in the table list need to have the same size as the list for the headers. Every list in the able list is a row in the output.

Args:

table (List[Union[List, Dict]]): Table body to be printed. table_headers (List): Table header to be printed.

Raises:

ValueError: Exception thrown if header and body lengths differ.

Module contents

This package provides printing functionalities.