prettytable
A simple Python library for easily displaying tabular data in a visually appealing ASCII table format
Install
prettytable on PyPI
pip
pip install prettytableuv
uv add prettytablepoetry
poetry add prettytablePackage 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
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.
Similar packages
permissive · top 1,000 on PyPI
richpermissive · top 100 on PyPI
agatepermissive · top 1,000 on PyPI
daffpermissive · top 1,000 on PyPI
aiosqlitepermissive · top 1,000 on PyPI
redshift-connectorpermissive · top 1,000 on PyPI
pymssqlcopyleft · top 1,000 on PyPI
Makopermissive · top 1,000 on PyPI
wcwidthpermissive · top 1,000 on PyPI
text-unidecodecopyleft · top 1,000 on PyPI