5.5. Functions

pytablewriter.dump_tabledata(value, format_name=u'rst_grid_table')
Parameters:
  • value (tabledata.TableData) – Tabular data to dump.
  • format_name (str) – Dumped format name of tabular data. Available formats are described in create_from_format_name()
Example:
>>>dump_tabledata(value)
.. table:: sample_data

    ======  ======  ======
    attr_a  attr_b  attr_c
    ======  ======  ======
         1     4.0  a
         2     2.1  bb
         3   120.9  ccc
    ======  ======  ======