A very simple tabular data formatter for console application.
| Project | Tabler |
|---|---|
| Author | Özcan Yarımdünya |
| Documentation | https://ozcanyarimdunya.github.io/tabler/ |
| Source code | https://github.com/ozcanyarimdunya/tabler |
pip install py-tablerfrom 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 |
+------+------+------+