Comparison
pglast vs pgparse vs sqloxide vs sqlparse
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 6 days ago, commits in 16 of the last 26 weeks. A safe choice.
pip install pglastPython wrapper for libpg_query
Low maintenance activity. Last release 8 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install pgparsePython bindings for sqlparser-rs
Maintained. Last release 8 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install sqloxideA non-validating SQL parser.
Maintained. Last release 4 weeks ago, commits in 7 of the last 26 weeks. Weaker on issue handling and contributor spread.
pip install sqlparseIn short
- sqlparse is the most used: 128.9M downloads a month, 11× more than pglast.
- pglast is better maintained: Pythie’s Index 87 against 62.
- pgparse is growing fastest: downloads +195% over the last month.
- pglast is the newcomer: first released Jul 2026.
- Safe default for a new project: sqlparse, or pglast if active maintenance matters most.