semvec/pypi-packages huggingface dataset:
shiraztable 0.1.0
A class for drawing table in text console for python in windows or linux
License: MIT
Requires Python: >=3.8

# TextTable

TextTable is a lightweight Python module that helps developers draw well-formatted
tables in the console using ASCII or Unicode box-drawing characters.

It is designed for command-line applications where clear tabular output and
optional pagination are required.

---

## Features

- Draw tables using ASCII or Unicode borders
- Support for single-line, double-line, and dashed table styles
- Automatic column width calculation
- Left, right, and center text alignment
- Pagination support for large datasets
- Cross-platform (Windows, Linux, macOS)

---

## Installation

```bash
pip install texttable
```
## Basic Usage

from Texttable import TextTable

t = TextTable(ttype='=', page_size=10)
t.set_columns(['Column 1', 'Column 2', 'Column 3'])
t.add_row(['Data 1', 'Data 2', 'Data 3'])
t.add_row(['More', 'Sample', 'Values'])

print(t)

## Pagination Example

from Texttable import TextTable

t = TextTable(ttype='-', page_size=5)
t.set_columns(['ID', 'Name', 'Value'])

for i in range(20):
    t.add_row([str(i), f'Item {i}', str(i * 10)])

t.print_with_pagination()