ozcanyarimdunya / tabler

A very simple tool to tabulate data for console application.

Home Page:https://ozcanyarimdunya.github.io/tabler/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tabler

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

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    |
+------+------+------+

About

A very simple tool to tabulate data for console application.

https://ozcanyarimdunya.github.io/tabler/

License:MIT License


Languages

Language:Python 94.6%Language:Makefile 5.4%