1
0
Fork 0
Find a file
Daniel Baumann 6ca2b88756
Releasing debian version 4.0.0-1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-12 15:03:09 +01:00
.github/workflows Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
debian Releasing debian version 4.0.0-1. 2025-02-12 15:03:09 +01:00
docs Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
terminaltables3 Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
tests Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
.converagerc Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
.env_example Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
.gitignore Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
.pre-commit-config.yaml Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
.pylintrc Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
build.sh Merging upstream version 3.1.10 (Closes: #1014035). 2025-02-12 13:07:05 +01:00
CHANGELOG.md Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
CONTRIBUTING.md Adding upstream version 3.1.0. 2025-02-12 13:04:33 +01:00
example1.py Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
example2.py Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
example3.py Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
LICENSE Merging upstream version 3.1.10 (Closes: #1014035). 2025-02-12 13:07:05 +01:00
Makefile Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
poetry.lock Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
publish.sh Merging upstream version 3.1.10 (Closes: #1014035). 2025-02-12 13:07:05 +01:00
pyproject.toml Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
README.md Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00
tox.ini Merging upstream version 4.0.0 (Closes: #1095814). 2025-02-12 15:00:49 +01:00

What is it

Easily draw tables in terminal/console applications from a list of lists of strings. Supports multi-line rows.

Tested on Python 3.8+

This is a fork of the terminaltables project. Which is archived and unmaintained. This library is in a new namespace but should otherwise be a drop in replacement. Maintaining goals consist of maintaining ecosystem compatibility, type annotations and responding to community pull requests.

To Upgrade

Replace all instances of terminaltables with terminaltables3 in your code. If other libraries depend on terminaltables in your venv they will not conflict because it is a new namespace.

As of right now, the documentation as the robpol86 version.

📖 Full documentation: https://robpol86.github.io/terminaltables

Quickstart

Install:

pip install terminaltables3

Usage:

from terminaltables3 import AsciiTable

table_data = [
    ["Heading1", "Heading2"],
    ["row1 column1", "row1 column2"],
    ["row2 column1", "row2 column2"],
    ["row3 column1", "row3 column2"],
]
table = AsciiTable(table_data)
print
table.table
+--------------+--------------+
| Heading1     | Heading2     |
+--------------+--------------+
| row1 column1 | row1 column2 |
| row2 column1 | row2 column2 |
| row3 column1 | row3 column2 |
+--------------+--------------+

Example Implementations

Example Scripts Screenshot

Source code for examples:

Change Log