skillfed

terminaltables

Generate simple tables in terminals from a nested list of strings.

terminaltables v3.1.10 6.2M downloads/30d#1,949 on PyPI48
Permissive license MIT AGING released

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 terminaltables

uv

uv add terminaltables

poetry

poetry add terminaltables

Installing 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: MacOS XEnvironment :: Win32 (MS Windows)Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: LibrariesTopic :: TerminalsTopic :: Text Processing :: Markup

Tags

terminal table formattingascii table generatorconsole table outputprint formatted tablesterminal data displaycommand line table renderingtext-based table layout
cli-outputtext-formatting

More Libraries packages