Aiopg
lastmod 2026-11-10created 2021-02-242 edits
aiopg is a Python library that wraps psycopg2 so that PostgreSQL can be queried asynchronously inside the asyncio event loop. It provides a connection pool and an async with-based cursor API, and the SQLAlchemy Core query builder can optionally be used with it. Later, asyncpg, implemented as purely asynchronous, and psycopg 3, which supports asynchronous use directly, appeared and added more alternatives.
aiopg is a library for accessing a PostgreSQL database from the asyncio