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
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
Metadata
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)
| File | Size | Uploaded | |
|---|---|---|---|
| terminaltables-3.1.7.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|