# asyncpg — card for AI agents

Fast asyncio PostgreSQL driver for non-blocking database operations in Python.

Category: Databases, ORMs and clients · PyPI package `asyncpg` · latest version 0.32.0 (checked 2026-11-01)
Install: `pip install asyncpg`
License: Apache-2.0 (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 71.1 (#336 of all tools, 11 of 120 in its category)
- Used in 69 public projects set up for AI coding agents (1.1%)
- Downloads last week: 36,284,548 (as of 2026-11-24), +14.8% over 4 weeks
- GitHub stars: 8,124 (as of 2026-11-24)
- Last push: 2026-10-08

## Often used with
FastAPI 88.4%, Uvicorn 84.1%, Pydantic 81.2%, SQLAlchemy 75.4%, Pydantic Settings 59.4%, python-dotenv 56.5%

## Checked alternatives (same job)
- SQLAlchemy: https://agentgid.com/tools/sqlalchemy/agent.md
- psycopg2: https://agentgid.com/tools/psycopg2-binary/agent.md
- psycopg: https://agentgid.com/tools/psycopg/agent.md
- aiosqlite: https://agentgid.com/tools/aiosqlite/agent.md
- DuckDB: https://agentgid.com/tools/duckdb/agent.md
- PyMySQL: https://agentgid.com/tools/pymysql/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/asyncpg/
- Repository: https://github.com/MagicStack/asyncpg

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
