Comparison
ansitable vs prettytable vs PTable vs texttable
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Quick and easy display of tabular data and matrices with optional ANSI color and borders
Actively maintained. Last release 7 weeks ago, commits in 10 of the last 26 weeks. A safe choice.
pip install ansitableA simple Python library for easily displaying tabular data in a visually appealing ASCII table format
Actively maintained. Last release 13 days ago, commits in 12 of the last 26 weeks. A safe choice.
pip install prettytableA simple Python library for easily displaying tabular data in a visually appealing ASCII table format
Likely abandoned. No release or commit for years (last release over 11 years ago).
pip install ptablemodule to create simple ASCII tables
Maintained. Last release 3 days ago, commits in 4 of the last 26 weeks. Weaker on commit activity and security practices.
pip install texttableIn short
- PTable looks abandoned: avoid it for new projects.
- prettytable is the most used: 50.3M downloads a month, 2.5× more than texttable.
- Maintenance is comparable: ansitable 77, prettytable 73, texttable 61 on Pythie’s Index.
- ansitable is growing fastest: downloads +18% over the last month.
- Safe default for a new project: prettytable.
Side by side
| Metric | ansitable | prettytable | PTable | texttable |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 77 | Pythie’s Index: 73 | Pythie’s Index: 16 | Pythie’s Index: 61 |
| Verdict | Actively maintained | Actively maintained | Likely abandoned | Maintained |
| Downloads / month | 121.9K | 50.3M | 553.3K | 19.9M |
| Downloads, month over month | +18% | +10% | +5% | -3% |
| GitHub stars | 21 | 1.8K | 126 | 360 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 8 | 1.6K | 57 | 212 |
| Last release | Oct 12, 2026 | Nov 17, 2026 | May 28, 2015 | Nov 27, 2026 |
| Releases, 12 months | 7 | 2 | 0 | 4 |
| Weeks with commits | 10 / 26 | 12 / 26 | 0 / 26 | 4 / 26 |
| Recent contributors | 1 | 11 | 10 | 11 |
| First release | Sep 2020 | Apr 2009 | May 2015 | Nov 2015 |
| Python versions | 3.9 – 3.14 | 3.11 – 3.16 | – | 3.4 – 3.15 |
| License | MIT | BSD-3-Clause | non-standard | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.