graphdot.util.printer module

class graphdot.util.printer.markdown[source]

Bases: object

classmethod table(*fields, print_header='auto')[source]

Print a row of data in Markdown table format.

Parameters:
  • fields (list of (title, format, value) tuples) – Each tuple sets the title of the associated column, format, and the value.
  • print_header (Boolean or 'auto') – If ‘auto’, a header row will automatically be printed if it is the first invocation of this method since calling :py:`markdown.table_start()`. If print_header is a boolean, a header row will be printed according to its truth value.
classmethod table_header(*fields)[source]

Print the header row of a Markdown table.

Parameters:fields (list of (title, format, value) tuples) – Each tuple sets the title, format, and a dummy value for each column.
classmethod table_start()[source]