py-tabler

A very simple tabular data formatter for console application.


Keywords
tabler, tabulate-data
License
MIT
Install
pip install py-tabler==0.1.1

Documentation

Tabler

A very simple tabular data formatter for console application.

Installation

pip install py-tabler

Example

from tabler import Tabler


table = Tabler(
    data=[
        [1, 2, 3],
        [4, 5, 6],
    ],
    columns=["col1", "col2", "col3"],
)

print(table.format())

Output

+------+------+------+
| col1 | col2 | col3 |
+------+------+------+
| 1    | 2    | 3    |
| 4    | 5    | 6    |
+------+------+------+