---
id: asyncpg
version: "0.31.0"
license: Apache-2.0
license_treatment: permissive
maintenance: active
---
# asyncpg — An asyncio PostgreSQL driver
License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI
## Install
pip install asyncpg
uv add asyncpg
poetry add asyncpg
## Description
asyncpg -- A fast PostgreSQL Database Client Library for Python/asyncio
=======================================================================
.. image:: https://github.com/MagicStack/asyncpg/workflows/Tests/badge.svg
:target: https://github.com/MagicStack/asyncpg/actions?query=workflow%3ATests+branch%3Amaster
:alt: GitHub Actions status
.. image:: https://img.shields.io/pypi/v/asyncpg.svg
:target: https://pypi.python.org/pypi/asyncpg
**asyncpg** is a database interface library designed specifically for
PostgreSQL and Python/asyncio. asyncpg is an efficient, clean implementation
of PostgreSQL server binary protocol for use with Python's ``asyncio``
framework. You can read more about asyncpg in an introductory
`blog post `_.
asyncpg requires Python 3.9 or later and is supported for PostgreSQL
versions 9.5 to 18. Other PostgreSQL versions or other databases
implementing the PostgreSQL protocol *may* work, but are not being
actively tested.
Documentation
-------------
The project documentation can be found
`here `_.
Performance
-----------
In our...
## AI interpretation — verify before relying
asyncpg is a high-performance async PostgreSQL driver for Python that implements the PostgreSQL protocol natively to enable efficient database queries within asyncio applications.
Verdict: asyncpg is a mature, actively maintained async PostgreSQL driver (Apache-2.0 licensed, no known vulnerabilities) with strong performance claims and broad Python version support. Medium install friction from compiled extensions is typical for performance-critical database drivers and well-mitigated by pre-built wheels.
[View on SkillFed](https://skillfed.io/packages/asyncpg) · [View on PyPI](https://pypi.org/project/asyncpg/)