Comparison
pgparse vs postgast vs sqlglot vs sqlparse
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python 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 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 postgastAn easily customizable SQL parser and transpiler
Actively maintained. Last release 1 day ago, commits in 26 of the last 26 weeks. A safe choice.
pip install sqlglotA non-validating SQL parser.
Actively maintained. Last release 4 weeks ago, commits in 8 of the last 26 weeks. A safe choice.
pip install sqlparseIn short
- sqlparse is the most used: 129.5M downloads a month.
- sqlglot is better maintained: Pythie’s Index 82 against 70.
- postgast is growing fastest: downloads +414% over the last month.
- postgast is the newcomer: first released Feb 2026.
- Safe default for a new project: sqlparse, or sqlglot if active maintenance matters most.
Side by side
| Metric | pgparse | postgast | sqlglot | sqlparse |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 35 | Pythie’s Index: 65 | Pythie’s Index: 82 | Pythie’s Index: 70 |
| Verdict | Low maintenance activity | Maintained | Actively maintained | Actively maintained |
| Downloads / month | 500.2K | 284.5K | 98.8M | 129.5M |
| Downloads, month over month | +146% | +414% | +19% | +10% |
| GitHub stars | 2 | 0 | 9.8K | 4K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 1 | 3 | 0 | 768 |
| Last release | Mar 19, 2026 | Sep 23, 2026 | Dec 1, 2026 | Nov 1, 2026 |
| Releases, 12 months | 2 | 5 | 57 | 3 |
| Weeks with commits | 0 / 26 | 6 / 26 | 26 / 26 | 8 / 26 |
| Recent contributors | 1 | 1 | 8 | 19 |
| First release | Jul 2019 | Feb 2026 | Mar 2021 | Apr 2012 |
| Python versions | 3.11 – 3.14 | 3.10 – 3.14 | – | 3.10 – 3.14 |
| License | BSD-3-Clause | BSD-2-Clause | MIT | non-standard |
| 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.