Skip to main content

Simple, minimal, dependency-free ASCII tables for Python.

Project description

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

pip install simple-ascii-tables

Usage

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:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_ascii_tables-1.0.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_ascii_tables-1.0.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file simple_ascii_tables-1.0.1.tar.gz.

File metadata

  • Download URL: simple_ascii_tables-1.0.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.13.1 Linux/6.12.4-400.asahi.fc41.aarch64+16k

File hashes

Hashes for simple_ascii_tables-1.0.1.tar.gz
Algorithm Hash digest
SHA256 33a0d8f31f562084b614091d7c8f70897d23a03806796765039254984efe383a
MD5 0fa7423e4697f64e689b9c9c3042878a
BLAKE2b-256 885685f6f883beadf95b7c77d521b6c3849936ca057d6fdafdd9379a3f6ab41d

See more details on using hashes here.

File details

Details for the file simple_ascii_tables-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: simple_ascii_tables-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.13.1 Linux/6.12.4-400.asahi.fc41.aarch64+16k

File hashes

Hashes for simple_ascii_tables-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b67941c6e6262900b288700afae6eabaac16b1899a30e5f00cb203ff5aecfe11
MD5 734578c30d10cc00123233da693e1907
BLAKE2b-256 593b5152b2dd6e2b0be9945f554078b5329bf89b526fe70e9be15b879c2f7b91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page