Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 414 Bytes

README.mkd

File metadata and controls

24 lines (22 loc) · 414 Bytes

Pable

Create printable terminal tables with python.

Install

[sudo] python setup.py install

Usage

from Pable import Table
# To generate a table, provide an array of arrays (which are interpreted as rows):
rows = []
rows.append(['One', '1'])
rows.append(['One', '2'])
rows.append(['One', '3'])
print rows.render()
+-------+---+
| One   | 1 |
| Two   | 2 |
| Three | 3 |
+-------+---+