Comparison
pgdb vs psycopg2
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
PostgreSQL wrapper
Likely abandoned. No release or commit for years (last release over 5 years ago).
$
pip install pgdbpsycopg2 - Python-PostgreSQL Database Adapter
Maintained. Last release 3 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install psycopg2In short
- pgdb looks abandoned: avoid it for new projects.
- psycopg2 is the most used: 60.4M downloads a month, 836× more than pgdb.
- psycopg2 also has the best Pythie’s Index (52).
Side by side
| Metric | pgdb | psycopg2 |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 19 | Pythie’s Index: 52 |
| Verdict | Likely abandoned | Maintained |
| Downloads / month | 72.2K | 60.4M |
| Downloads, month over month | -20% | -5% |
| GitHub stars | 17 | 3.7K |
| Stars, last 7 days | – | – |
| Direct dependents | 2 | 1.8K |
| Last release | Jul 29, 2021 | Sep 9, 2026 |
| Releases, 12 months | 0 | 2 |
| Weeks with commits | 0 / 26 | 2 / 26 |
| Recent contributors | 5 | 6 |
| First release | Oct 2016 | Sep 2010 |
| Python versions | 3.5 | 3.10 – 3.15 |
| License | Apache-2.0 | non-standard |
| Known vulnerabilities | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.