# PrettyTable

> Print tables of data as ASCII art in Python

Source: https://talira.ai/catalog/prettytable-cz49bkn6
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / text / pretty printing](https://talira.ai/categories/libraries/text/pretty-printing), [languages / python](https://talira.ai/categories/languages/python)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [PrettyTable](https://talira.ai/orgs/prettytable.md)

PrettyTable is a Python library for printing tabular data as neat ASCII tables. Rows can be added one by one or imported from a CSV file or a database cursor, sorted by a field, styled, and printed as text, HTML, JSON, CSV, LaTeX or MediaWiki markup.

## Links

- GitHub: https://github.com/prettytable/prettytable

## Problems it solves

- print a list of records as a readable table in my Python script
- show query results as an ASCII table in the terminal
- turn a CSV file into a formatted text table

## Features

- ASCII tables from rows or columns
- import from CSV files and database cursors
- sorting by a field
- output as text, HTML, JSON, CSV, LaTeX or MediaWiki

## Trust

Overall: 0.56 out of 1.
Signals: maintenance 0.78, adoption 0.65, momentum 0.35, community 0.76, backing 0.30, extensibility 0.00.

- last commit yesterday
- 27 commits in the last 90 days
- latest release 3.19.0 12 days ago
- 1.8k GitHub stars
- 77 contributors
- accepts sponsorship (Github, Tidelift)
- has a company behind it

## Alternatives

- [tabulate](https://talira.ai/catalog/tabulate-7gdzr1wq.md): Pretty-print tabular data in Python as text, Markdown, LaTeX or HTML tables

## Sources

[^1]: https://github.com/prettytable/prettytable/blob/main/README.md (checked 29 Nov 2026)
[^2]: https://github.com/prettytable/prettytable/blob/main/LICENSE (checked 29 Nov 2026)
