skillfed

prettytable

A simple Python library for easily displaying tabular data in a visually appealing ASCII table format

prettytable Permissive license BSD-3-Clause Active 1,670 v3.18.0 released

Install

prettytable on PyPI

pip

pip install prettytable

uv

uv add prettytable

poetry

poetry add prettytable

Package facts

License BSD-3-Clause (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 1 — wcwidth
Maintenance actively maintained — 52 days since the last release
Last repo commit
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: prettytable-3.18.0-py3-none-any.whl

Programming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.16Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Text ProcessingTyping :: Typed

About prettytable

from the package's own PyPI description — quoted content, verbatim

PrettyTable

PyPI version (image) Supported Python versions (image) PyPI downloads (image) GitHub Actions status (image) Codecov (image) Licence (image) Code style: Black (image) Tidelift (image)

PrettyTable lets you print tables in an attractive ASCII form:

``` +-----------+------+------------+-----------------+ | City...

Read as markdown · JSON record · Source repository · Homepage

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

PrettyTable formats and prints tabular data as visually appealing ASCII tables, with support for multiple output formats including HTML, JSON, CSV, and LaTeX.

Installs cleanly with minimal friction—only wcwidth as a runtime dependency, and the project maintains active development with recent releases and strong community engagement (1670 GitHub stars).

BSD-3-Clause is permissive; you may use, modify, and distribute prettytable freely in commercial and private projects provided you include the license notice.

Usage

from prettytable import PrettyTable
table = PrettyTable()
table.field_names = ["City", "Population"]
table.add_row(["Adelaide", 1158259])
print(table)

Requires Python 3.10 or later.

Verdict: A lightweight, actively maintained table-formatting library with permissive licensing and no known vulnerabilities. Low install friction and broad Python version support (3.10–3.16) make it a reliable choice for CLI and reporting applications.

Needs verification

  • Whether wcwidth has any transitive dependencies that could increase install friction beyond the single declared runtime dependency.
  • Performance characteristics when formatting very large tables.
ascii table formattingpretty print tablestabular data displaytext table generatorformatted table outputcsv to ascii tabledatabase cursor to table

Similar packages