MagicStack/asyncpg
A fast PostgreSQL Database Client Library for Python/asyncio. observed · 2026-08-28
Health v2 · maintenance only
60/100
- Activity 69
- Release rhythm 26
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 400
- age_days: 3698
- days_rel: 282
- days_push: 187
- n_releases_24m: 2
Adoption not part of the score
8075 stars · 464 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
asyncpg is a fast PostgreSQL client library for Python built directly on the PostgreSQL binary protocol and designed for asyncio. It exposes native PostgreSQL features like prepared statements, scrollable cursors, and automatic composite/array type encoding without a DB-API facade.
Use cases
- connect to postgresql from python asyncio code
- run high-performance queries against postgres
- execute prepared statements with async python
- fetch large query results efficiently with cursors
- work with postgres arrays and composite types in python
- build async web backends backed by postgres
When to choose
- you use asyncio and need the fastest postgres driver for python
- you want native postgres protocol features like custom types and scrollable cursors
- you are building async applications or services on postgres
When to avoid
- you need a synchronous driver or DB-API 2.0 compatibility
- you need multi-database support beyond postgresql
- you rely on ORMs that only support psycopg-style drivers
Facets
library · maturity stable
database-driver database databases backend developer-tools python cross-platform postgresql asyncio binary-protocol prepared-statements high-performance
1 source
- readme: https://github.com/MagicStack/asyncpg · fetched 2026-08-28 · 491efc970950
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| MagicStack/asyncpg | main | 60 |
For agents
markdown · JSON · MCP: product_card(name="MagicStack/asyncpg")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem