pretty_table_printer package

Submodules

pretty_table_printer.pretty_table_printer module

Main module.

class pretty_table_printer.pretty_table_printer.ColumnSpec(name, width=10, func=<function ColumnSpec.<lambda>>)[source]

Bases: object

transform(item)[source]
class pretty_table_printer.pretty_table_printer.RowCollection(name, column_specs, headers)[source]

Bases: object

append(row_dict)[source]
break_line
header_row
make_printable_row(row)[source]
printable_rows
pretty_table_printer.pretty_table_printer.clean_headers(headers)[source]
pretty_table_printer.pretty_table_printer.get_max_width_of_items(items, with_commas=False)[source]
pretty_table_printer.pretty_table_printer.guess_row_collection(rows)[source]
pretty_table_printer.pretty_table_printer.pretty_date(d: datetime.datetime) → str[source]
pretty_table_printer.pretty_table_printer.pretty_generic_decimal(amount) → str[source]
pretty_table_printer.pretty_table_printer.pretty_int(amount) → str[source]
pretty_table_printer.pretty_table_printer.pretty_money(amount) → str[source]
pretty_table_printer.pretty_table_printer.sanitize(old_rows)[source]
pretty_table_printer.pretty_table_printer.should_be_formatted_with_commas(column_name)[source]

Module contents

Top-level package for pretty-table-printer.