table_interface#
- utils.table_interface.compose(table_obj)[source]#
DESCRIPTION:
This method composes and outputs the specified table in accordance with the attributes specified within the table_obj SimpleNamespace object upon entry.
- Parameters:
- table_obj:
SimpleNamespace A Python SimpleNamespace object containing the table attributes.
- table_obj:
- Returns:
- table:
str A Python object containing the composed table.
- table:
- Return type:
str
- utils.table_interface.init_table()[source]#
DESCRIPTION:
This function initializes a SimpleNamespace object to be used for defining a table using the Python tabulate function; the respective SimpleNamespace object may be used by the compose function within this module.
- Returns:
- table_obj:
SimpleNamespace A Python SimpleNamespace object containing the initialized table attributes.
- table_obj:
- Return type:
SimpleNamespace