def main(): print(plain(doc(inventory_summary))) print('InventorySummary fields:', *InventorySummary._fields, sep='\n\t', end='\n\n') print_table(inventory_summary())
def main(): rows = '' for summary in inventory_summary(): rows += _row_template % summary print(_table_template % ''.join(rows))