Skip to content

Tableascii

A simple, lightweight, no-dependency Python library to create clean ASCII Table.

Installation

Install from pypi

pip install tableascii

Or directly from Github

pip install git+https://github.com/Tari-dev/tableascii.git

Usage Example

from tableascii import Table

data = [
    ["Name", "Age"],
    ["Alice", 30],
    ["Bob", 25]
]

tb = Table(data)
print(tb.create())
+-------------+
| Name  | Age |
|-------------|
| Alice | 30  |
| Bob   | 25  |
+-------------+

Features

  • Pure ASCII output
  • Simple and Lightweight
  • No dependencies
  • Automatically adjusts column width

License

MIT