PLTable

Python 3 library for easily displaying tabular data in a visually appealing text table format


License
BSD-1-Clause
Install
pip install PLTable==1.1.0

Documentation

PLTable

PLTable is a Python 3 library designed to make it quick and easy to represent tabular data in visually appealing text tables. PLTable is a fork of PTable which was in turn originally forked from PrettyTable:

Compared to PTable, PLTable:

  • Adds an improved Unicode line drawing table style based on Ryan James's original PTable fork, boxchar branch.
  • Adds JSON dictionary export via "get_json_dict" method. Dump it to JSON format via the built-in json library.
  • Fixes HTML export via "get_html_string" by adding proper table Title/Caption and valid xHTML parameter toggle.

PLTable can be used as a drop-in replacement for PTable, provided that the module import name is changed accordingly. The opposite is not true because PLTable adds additional capabilities which are not present at PTable, while retaining the existing, with various bug fixes when necessary.

You can find PrettyTable documentation at the PTable and/or PrettyTable wikis.

To install PLTable, use pip via pip install pltable or build from source via python setup.py install.