simple (default)#

see

http://docutils.sourceforge.net/docs/ref/rst/directives.html#tables

These python commands:

1import pyRestTable
2t = pyRestTable.Table()
3t.labels = ('one', 'two', 'three' )
4t.rows.append( ['1,1', '1,2', '1,3',] )
5t.rows.append( ['2,1', '2,2', '2,3',] )
6t.rows.append( ['3,1', '3,2', '3,3',] )
7t.rows.append( ['4,1', '4,2', '4,3',] )
8print(t.reST())

build this table source code:

1=== === =====
2one two three
3=== === =====
41,1 1,2 1,3
52,1 2,2 2,3
63,1 3,2 3,3
74,1 4,2 4,3
8=== === =====

which is rendered as:

one

two

three

1,1

1,2

1,3

2,1

2,2

2,3

3,1

3,2

3,3

4,1

4,2

4,3