terminaltables
Generate simple tables in terminals from a nested list of strings.
What it is and what it does
terminaltables renders formatted ASCII tables directly to terminal output from Python data structures. It takes a nested list of strings (rows and columns) and automatically handles column width calculation and alignment, producing clean ASCII-bordered tables suitable for CLI applications and scripts.
The package has no runtime dependencies and works across Python 2.6+ and 3.3+ on Linux, macOS, and Windows. It supports multi-line cell content, making it useful for displaying structured data in command-line tools, monitoring dashboards, and report generation scripts. The library is mature and stable but has not seen active development since late 2021.
Use it for:
- Display query results or database records in CLI tools with automatic column alignment
- Format structured data (CSV, logs, metrics) for human-readable terminal output
- Build monitoring dashboards or status reports that run in terminal environments
- Generate formatted output for shell scripts and automation tools that need readable tables
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Renders formatted ASCII tables in terminal output from nested lists of strings, with support for multi-line rows and automatic column alignment.
Yes, if you need simple ASCII table rendering in a terminal application. The package is stable, dependency-free, and widely used (6.2M monthly downloads). The aging status (no releases since 2021) is not a concern for a mature, feature-complete library, but verify compatibility if targeting Python versions beyond 3.10.
Install
terminaltables on PyPI
pip
pip install terminaltablesuv
uv add terminaltablespoetry
poetry add terminaltablesInstalling terminaltables
Before you install
Installation is straightforward with no runtime dependencies. The package is aging (last release 2021-12-07, 1711 days ago) but remains in production/stable status with an active repository.
License in practice
MIT license is permissive and poses no restrictions on commercial or proprietary use.
Quickstart
from terminaltables import AsciiTable
table_data = [
['Heading1', 'Heading2'],
['row1 column1', 'row1 column2']
]
table = AsciiTable(table_data)
print(table.table)
Verify before relying
- Whether multi-line row handling works correctly with all terminal widths and edge cases
- Current compatibility with Python versions beyond 3.10 (classifiers list 3.10 as latest tested)
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=2.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 1,711 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,241,262/month — #1,949 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: terminaltables-3.1.10-py2.py3-none-any.whl
Keywords: Shell, Bash, ANSI, ASCII, terminal, tables
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
reprintBinds Python variables to multi-line terminal…
permissive · top 15,000 on PyPI
table-loggerTableLogger formats and outputs tabular data to…
copyleft · top 15,000 on PyPI
terminaltables3Renders formatted tables in terminal output…
permissive · top 15,000 on PyPI
jcConverts output from popular CLI tools,…
permissive · top 15,000 on PyPI
beautifultablePrints tabular data to the terminal in a…
permissive · top 15,000 on PyPI
asciitreeRenders tree data structures as formatted ASCII…
permissive · top 5,000 on PyPI
texttableCreates formatted ASCII tables for console…
permissive · top 1,000 on PyPI
cli-helpersCLI Helpers provides utilities for common…
permissive · top 5,000 on PyPI
PTablePTable formats tabular data into visually…
permissive · top 15,000 on PyPI
sttableParses string-formatted tables (with…
permissive · top 15,000 on PyPI