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
author:

Pete R. Jemian

email:

prjemian@gmail.com

copyright:

2014-2019, Pete R. Jemian

license:

Creative Commons Attribution 4.0 International Public License (see LICENSE.txt)

docs:

https://pyRestTable.readthedocs.io

URL:

https://github.com/prjemian/pyRestTable

TODO:

https://github.com/prjemian/pyRestTable/issues

citations:DOI: 10.5281/zenodo.1471691
package:https://anaconda.org/prjemian/pyresttable https://pypi.python.org/pypi/pyresttable Py 2.7 | 3.5 | 3.6 | 3.7
build:https://travis-ci.org/prjemian/pyRestTable.svg?branch=master
coverage:https://coveralls.io/repos/github/prjemian/pyRestTable/badge.svg?branch=master
review:Language grade: Python Total alerts
version:

2020.0.2

release:

2020.0.2+0.gae01786.dirty

published:

Nov 09, 2020

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

Indices and tables