Comparison
asyncpg vs psycopg2 vs PyGreSQL
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 asyncpgpsycopg2 - 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 psycopg2Python PostgreSQL interfaces
Maintained. Last release 4 days ago, commits in 2 of the last 26 weeks. Weaker on commit activity and contributor spread.
$
pip install pygresqlIn short
- asyncpg is the most used: 149.4M downloads a month, 2.5× more than psycopg2.
- Maintenance is comparable: PyGreSQL 55, asyncpg 55, psycopg2 52 on Pythie’s Index.
- asyncpg is growing fastest: downloads +12% over the last month.