An open API service indexing awesome lists of open source software.

https://github.com/ozcanyarimdunya/tabler

A very simple tool to tabulate data for console application.
https://github.com/ozcanyarimdunya/tabler

tabler tabulate-data

Last synced: 5 months ago
JSON representation

A very simple tool to tabulate data for console application.

Awesome Lists containing this project

README

          

# 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

```shell
pip install py-tabler
```

## Example

```python
from tabler import Tabler

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

print(table.format())
```

**Output**

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