A simple, lightweight, no-dependency Python library to create clean ASCII Table.
Install from pypi
pip install tableascii
Or directly from Github
pip install git+https://github.com/Tari-dev/tableascii.git
from tableascii import Table
data = [
["Name", "Age"],
["Alice", 30],
["Bob", 25]
]
tb = Table(data)
print(tb.create())
+-------------+
| Name | Age |
|-------------|
| Alice | 30 |
| Bob | 25 |
+-------------+
- Pure ASCII output
- Simple and Lightweight
- No dependencies
- Automatically adjusts column width