Skip to main content

terminaltables

What is it

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

  • Python 2.6, 2.7, PyPy, PyPy3, 3.3, 3.4, and 3.5+ supported on Linux and OS X.
  • Python 2.7, 3.3, 3.4, and 3.5+ supported on Windows (both 32 and 64 bit versions of Python).

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

Quickstart

Install:

pip install terminaltables

Usage:

from terminaltables 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

Release files for terminaltables 3.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for terminaltables 3.1.8
File Size Uploaded Provenance Actions
terminaltables-3.1.8.tar.gz 12.3 kB Without provenance Details for terminaltables-3.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for terminaltables 3.1.8
File Interpreter ABI Platform Actions
terminaltables-3.1.8-py2.py3-none-any.whl Python 3, Python 2 none any Details for terminaltables-3.1.8-py2.py3-none-any.whl

Total release size: 27.4 kB

Release files / terminaltables-3.1.8.tar.gz

Download URL terminaltables-3.1.8.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
86ec4e5e439c17c0c097e3723346fda87b151bbb526afa2c5236016b27b70f3d
BLAKE2b-256 checksum
How to use checksums
95a52b63645cc40dfcb7686725b9ed7c4b016df09eb2dbc7329f2d55742ad015
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.7

Release files / terminaltables-3.1.8-py2.py3-none-any.whl

Download URL terminaltables-3.1.8-py2.py3-none-any.whl
Size 15.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
383916b5a203e6ac754ffbc18084a4988ef0746d7d754afd9f1188c3c003e399
BLAKE2b-256 checksum
How to use checksums
6f6bad2cbd9bb0341479a5f77f6b97a42792b2fdfc2d33ac07fbbacabaa3c5a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.7

Security for terminaltables 3.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page