UsageΒΆ

pyRestTable provides support for writing tables in the format of reStructured Text [1] from Python programs. (It provides no command-line or GUI program itself – no “entry points”; it should be used within a Python program.)

  • Import the pyRestTable package
  • Create the Table instance
  • Set the list of column labels (either labels.append() or addLabel())
  • Append the list of column cells for each row (either rows.append([]) or addRow())
  • Render the table with reST() (default table format is simple)

Examples are provided to demonstrate usage.

[1]http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html