terminaltables 3.1.10
pip install terminaltables
Latest version
Released:
Generate simple tables in terminals from a nested list of strings.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Robpol86
- Tags Shell, Bash, ANSI, ASCII, terminal, tables
- Requires: Python >=2.6
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
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
Source code for examples:
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Robpol86
- Tags Shell, Bash, ANSI, ASCII, terminal, tables
- Requires: Python >=2.6
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file terminaltables-3.1.10.tar.gz
.
File metadata
- Download URL: terminaltables-3.1.10.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba6eca5cb5ba02bba4c9f4f985af80c54ec3dccf94cfcd190154386255e47543 |
|
MD5 | 5467e06a1a6e24dc44e6dd241706668e |
|
BLAKE2b-256 | f5fc0b73d782f5ab7feba8d007573a3773c58255f223c5940a7b7085f02153c3 |
File details
Details for the file terminaltables-3.1.10-py2.py3-none-any.whl
.
File metadata
- Download URL: terminaltables-3.1.10-py2.py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4fdc4179c9e4aab5f674d80f09d76fa436b96fdc698a8505e0a36bf0804a874 |
|
MD5 | 6f125645c5a6766fa3fc01859d4a2514 |
|
BLAKE2b-256 | c4fbea621e0a19733e01fe4005d46087d383693c0f4a8f824b47d8d4122c87e0 |