Comparison
asyncpg vs pgdb vs postgres vs psycopg2
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
An asyncio PostgreSQL driver
Maintained. Last release 8 weeks ago, commits in 4 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install asyncpgPostgreSQL wrapper
Likely abandoned. No release or commit for years (last release over 5 years ago).
pip install pgdbpostgres is a high-value abstraction over psycopg2.
Likely abandoned. No release or commit for years (last release over 5 years ago).
pip install postgrespsycopg2 - 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.
- postgres looks abandoned: avoid it for new projects.
- asyncpg is the most used: 149.4M downloads a month, 2.5× more than psycopg2.
- Maintenance is comparable: asyncpg 55, psycopg2 52 on Pythie’s Index.
- asyncpg is growing fastest: downloads +12% over the last month.
Side by side
| Metric | asyncpg | pgdb | postgres | psycopg2 |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 55 | Pythie’s Index: 19 | Pythie’s Index: 12 | Pythie’s Index: 52 |
| Verdict | Maintained | Likely abandoned | Likely abandoned | Maintained |
| Downloads / month | 149.4M | 72.2K | 766.9K | 60.4M |
| Downloads, month over month | +12% | -20% | +96% | -5% |
| GitHub stars | 8.1K | 17 | 62 | 3.7K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 1.5K | 2 | 10 | 1.8K |
| Last release | Oct 6, 2026 | Jul 29, 2021 | Sep 20, 2021 | Sep 9, 2026 |
| Releases, 12 months | 1 | 0 | 0 | 2 |
| Weeks with commits | 4 / 26 | 0 / 26 | 0 / 26 | 2 / 26 |
| Recent contributors | 42 | 5 | 4 | 6 |
| First release | Jul 2016 | Oct 2016 | Aug 2013 | Sep 2010 |
| Python versions | 3.9 – 3.14 | 3.5 | 3.6 – 3.9 | 3.10 – 3.15 |
| License | Apache-2.0 | Apache-2.0 | 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.