Stack Explorer

asyncpg

database

High-performance async PostgreSQL driver for Python

5M/week → Stable

Features

postgresqlasyncdatabaseperformancedriver

Pros and Cons

Ventajas

  • + Extremely fast (C extension)
  • + 100% asynchronous
  • + Full PostgreSQL support
  • + Built-in connection pooling
  • + Prepared statements
  • + Native binary protocol

Desventajas

  • - PostgreSQL only
  • - Low-level API
  • - No ORM included
  • - Requires SQL knowledge
  • - More complex than psycopg2

Use Cases

  • High-performance APIs
  • Asyncio applications
  • FastAPI with PostgreSQL
  • High concurrency systems
  • Async ORM backends
  • Microservices

Tecnologías Relacionadas