utility_accert.Utility_methods.print_table#

Utility_methods.print_table(c, align_key=None, align=None, format_col=None)[source]#

Prints the table in an organized format via the PrettyTable library.

Parameters:
  • c (MySQLCursor) – MySQLCursor class instantiates objects that can execute MySQL statements.

  • align_key (list[str], optional) – List of column names to align. (By default none)

  • align (list[str], optional) – List of alignments. Left, right or center. (By default none)

  • format_col (list[str], optional) – List of column names to format. (By default none)