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.
- Host: GitHub
- URL: https://github.com/ozcanyarimdunya/tabler
- Owner: ozcanyarimdunya
- License: mit
- Created: 2022-03-28T17:04:32.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-30T08:00:12.000Z (about 4 years ago)
- Last Synced: 2025-10-29T12:44:22.838Z (8 months ago)
- Topics: tabler, tabulate-data
- Language: Python
- Homepage: https://ozcanyarimdunya.github.io/tabler/
- Size: 449 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 |
+------+------+------+
```