Comparison
pglast vs postgast
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
PostgreSQL Languages AST and statements prettifier
Actively maintained. Last release 8 days ago, commits in 15 of the last 26 weeks. A safe choice.
$
pip install pglastPython bindings to libpg_query: parse, deparse, normalize, fingerprint, split, and scan PostgreSQL SQL
Maintained. Last release 2 months ago, commits in 6 of the last 26 weeks. Weaker on contributor spread.
$
pip install postgastIn short
- pglast is the most used: 12.2M downloads a month, 43× more than postgast.
- pglast also has the best Pythie’s Index (87).
- postgast is growing fastest: downloads +414% over the last month.
- postgast is the newcomer: first released Feb 2026.
- Safe default for a new project: pglast.