Metadata-Version: 2.1
Name: simple-ascii-tables
Version: 1.0.1
Summary: Simple, minimal, dependency-free ASCII tables for Python.
Home-page: https://pypi.org/project/simple-ascii-tables/
License: MIT
Keywords: ascii,table,ascii-table,ascii-tables,simple,simple-ascii-table
Author: Giacomo Battaglia
Author-email: kerykeion.astrology@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Project-URL: Repository, https://github.com/g-battaglia/simple-ascii-tables
Description-Content-Type: text/markdown

# Simple Ascii Tables

A simple, minimal and *dependency-free* python package for generating ascii tables.

It's a simplified fork of terminaltables.

## Why another fork?

Terminal Tables was a super cool project. It's no more maintained sadly.
There are some forks but they're too much complex for a basic usage.
There is also Rich library which is awesome but it's bloated for a simple ascii table with no dependencies.


## Installation

```bash
pip install simple-ascii-tables
```

## Usage

```python
from simple_ascii_tables import AsciiTable

table_data = [
    ["Name", "Age", "Country"],
    ["Alice", 24, "Canada"],
    ["Bob", 19, "USA"],
    ["Charlie", 30, "Australia"],
]

table = AsciiTable(table_data)
table.title = "User Information"
print(table.table)
```

Output:

```plaintext
+User Information-----------+
| Name    | Age | Country   |
+---------+-----+-----------+
| Alice   | 24  | Canada    |
| Bob     | 19  | USA       |
| Charlie | 30  | Australia |
+---------+-----+-----------+
```

