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
- Host: GitHub
- URL: https://github.com/tommyip/tabled
- Owner: tommyip
- License: mit
- Created: 2017-01-14T21:33:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-03T16:20:53.000Z (about 9 years ago)
- Last Synced: 2025-01-08T05:16:01.438Z (over 1 year ago)
- Topics: pretty-print, python-3, table-generator
- Language: Python
- Homepage: http://tabled.readthedocs.io
- Size: 95.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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/