pyRestTable¶
Format a nice table in reST (reStructuredText) from Python.
Each cell may have multiple lines, separated by a newline. The content of each cell will be rendered as str(cell). At present, pyRestTable only supports tables with content that does not span any cells (no rowspans or columnspans).
- Install with conda:
conda install -c prjemian pyRestTable
- Install with pip:
pip install pyRestTable
Features¶
- create simple, plain, grid (also known as complex), and list-table reST formatted tables [1], also markdown-formatted tables [2]
- defines table cells through Python lists, row-by-row
- use with Python 2 or Python 3
[1] | http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#tables |
[2] | https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#tables |