Skip to main content

terminaltables

Forked because original project's repo is ARCHIVED and there are no wheels for the old project in pypi.

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: example1.py example2.py <https://github.com/Robpol86/terminaltables/blob/master/example2.py>, and example3.py <https://github.com/Robpol86/terminaltables/blob/master/example3.py>

.. changelog-section-start

Release files for terminaltables 3.1.7

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.7
File Size Uploaded
terminaltables-3.1.7.tar.gz 12.4 kB Details

Built distribution (wheel)

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

Total release size: 27.6 kB

Release files / terminaltables-3.1.7.tar.gz

Download URL terminaltables-3.1.7.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5dab2f33927c0a020b8011c81b92830ff9fd4ba701657da5d7bfdc41048360a6
BLAKE2b-256 checksum
How to use checksums
b06d19ab8dd9b85b804e4d90fba678156bf4f3dcc04935edbfb5ff8ebcec5199
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.7-py2.py3-none-any.whl

Download URL terminaltables-3.1.7-py2.py3-none-any.whl
Size 15.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
18ba14fdfbc6a6d7dcf65aa0871a5dbea81d7d324ecfad8dc8c2f94b3efb4f2e
BLAKE2b-256 checksum
How to use checksums
1ed0663ada6aea1ed17d9b9c22a896d1fbecfff24c4e0abe6e7e212443b12499
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 history Release notifications | RSS feed

3.1.9

2 release files

3.1.8

2 release files

This release

3.1.7 This release

2 release files

3.1.6

2 release files

3.1.5

1 release file

3.1.0

1 release file

3.0.0

1 release file

2.1.0

1 release file

2.0.0

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

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