An open API service indexing awesome lists of open source software.

https://github.com/tommyip/tabled

Tables for Humans
https://github.com/tommyip/tabled

pretty-print python-3 table-generator

Last synced: 7 months ago
JSON representation

Tables for Humans

Awesome Lists containing this project

README

          


tableD




Tavis CI


Coveralls


Read The Docs

MIT license

# tableD: *Tables for Humans?*

**tableD** pretty prints your data in a tabular format. With its clean and
simple API, you can generate fancy tables in no time! And did I mention it is
extremely flexible and configurable?

Quick start:
```python
>>> headings = ['x', 'f(x) = x^2', 'f(x) = x^x']
>>> data = [[x, x**2, x**x] for x in range(1, 11)]

# Generate table!
>>> tabled.new(headings, data, style='terminal').show()
╔════╦════════════╦═════════════╗
║ x ║ f(x) = x^2 ║ f(x) = x^x ║
╠════╬════════════╬═════════════╣
║ 1 ║ 1 ║ 1 ║
║ 2 ║ 4 ║ 4 ║
║ 3 ║ 9 ║ 27 ║
║ 4 ║ 16 ║ 256 ║
║ 5 ║ 25 ║ 3125 ║
║ 6 ║ 36 ║ 46656 ║
║ 7 ║ 49 ║ 823543 ║
║ 8 ║ 64 ║ 16777216 ║
║ 9 ║ 81 ║ 387420489 ║
║ 10 ║ 100 ║ 10000000000 ║
╚════╩════════════╩═════════════╝
```

Full documentation is available at [Read the Docs][docs].

[docs]: http://tabled.readthedocs.io/en/latest/