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
TableinstanceSet the list of column labels (either
labels.append()oraddLabel())Append the list of column cells for each row (either
rows.append([])oraddRow())Render the table with
reST()(default table format issimple)
Examples are provided to demonstrate usage.