magicstack/asyncpg

A fast PostgreSQL Database Client Library for Python/asyncio.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 44 minutes ago
Added to GitGenius on September 8th, 2026
Created on July 19th, 2016
Open Issues & Pull Requests: 304 (+0)
GitHub issues: Enabled
Number of forks: 465
Total Stargazers: 8,086 (+0)
Total Subscribers: 106 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 4.3 days
Mean response time: 88.9 days
90th percentile: 195.8 days
Tracked items: 106

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 98% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 3% of issues opened in the past year have been closed. Three people close 64% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 91
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 842 days
Stale 30+ days: 86
Stale 90+ days: 77

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (2)
  • question (2)
  • feedback (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

asyncpg is a database driver library that provides native PostgreSQL protocol support for Python's asyncio framework. The tool solves the problem of efficiently executing database queries in asynchronous Python applications by implementing the PostgreSQL server binary protocol directly rather than wrapping a generic database abstraction layer. This native implementation allows asyncpg to expose PostgreSQL features directly, enabling straightforward support for prepared statements, scrollable cursors, partial iteration on query results, automatic encoding and decoding of composite types and arrays, and custom data type handling.

Developers choosing asyncpg should prioritize it for applications requiring high-performance asynchronous database access to PostgreSQL. The tool suits projects built on Python's asyncio framework where database latency matters and where direct access to PostgreSQL-specific features is valuable. The README does not name alternative libraries for direct comparison, so no comparative guidance can be offered beyond noting that asyncpg implements the PostgreSQL protocol natively rather than hiding it behind a generic facade.

The project maintains active test coverage across PostgreSQL versions and Python 3.9 or later. Development activity shows consistent attention to compatibility and reliability across the supported platform range.