awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
MagicStack avatar

MagicStack/asyncpg

0
View on GitHub↗
7,953 stars·437 forks·Python·apache-2.0·5 vues

Asyncpg

asyncpg is an asynchronous database driver and binary protocol client for PostgreSQL. It provides a non-blocking interface for executing SQL statements, streaming result sets, and managing data transfer between an application and a PostgreSQL database.

The driver implements the PostgreSQL binary protocol directly to facilitate efficient data transfer and type conversion. It includes a connection pool to maintain and reuse open database connections, reducing the latency associated with repeated handshakes.

The project covers a broad range of database integration capabilities, including atomic transaction management and the mapping of standard, composite, and custom data types to native objects. It further optimizes data retrieval through the use of server-side prepared statements and cursor-based result streaming to manage memory usage.

Features

  • Asynchronous Database Drivers - Serves as a high-performance, non-blocking PostgreSQL client designed for asynchronous data operations.
  • Binary Protocol Implementations - Directly implements the PostgreSQL binary wire protocol for high-performance asynchronous data transfer.
  • Asynchronous Database Command Execution - Executes database commands through a non-blocking interface to maintain application responsiveness.
  • Binary Type Codecs - Uses binary-format codecs to convert database types to Python objects, reducing parsing overhead.
  • Composite Type Encoders - Encodes and decodes composite types, arrays, and custom formats between the database and application.
  • PostgreSQL Pool Managers - Provides a connection pool specifically optimized for PostgreSQL wire protocol and server behavior.
  • PostgreSQL Integrations - Provides a high-performance asynchronous integration layer for PostgreSQL relational database connectivity.
  • Data Type Mappings - Translates complex database structures like arrays and records into native Python collections.
  • Atomic Transactions - Ensures data integrity by grouping multiple database operations into single atomic units of work.
  • Database Transaction Management - Groups SQL operations into atomic units of work to ensure data integrity and consistency.
  • Connection Pooling - Maintains a pool of reusable active connections to eliminate the latency of repeated handshakes.
  • Query Result Fetching - Retrieves resulting data sets from SQL statements using asynchronous communication.
  • SQL Query Interfaces - Provides a non-blocking programming interface for executing SQL statements and streaming result sets.
  • Coroutine-Based Asynchronous I/O - Implements a non-blocking interface using coroutines and an event loop for high-concurrency database communication.
  • Database Connectivity Drivers - Establishes secure, asynchronous links to PostgreSQL servers using connection strings.
  • Connection Pools - Uses connection pooling to maintain a cache of reusable database links for high-traffic applications.
  • Nested Transactions - Supports nested work units through transaction blocks and savepoints.
  • Memory-Optimized Data Retrieval - Implements cursor-based result streaming to retrieve large datasets while minimizing application memory overhead.
  • Prepared Statement Interfaces - Supports server-side prepared statements to pre-compile queries and improve execution speed.
  • Prepared Statements - Utilizes server-side prepared statements to pre-compile queries for increased execution speed and security.
  • Result Streaming - Retrieves large datasets incrementally using cursors to prevent application memory exhaustion.
  • Database Drivers - High-performance PostgreSQL database client library.

Historique des stars

Graphique de l'historique des stars pour magicstack/asyncpgGraphique de l'historique des stars pour magicstack/asyncpg

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Questions fréquentes

Que fait magicstack/asyncpg ?

asyncpg is an asynchronous database driver and binary protocol client for PostgreSQL. It provides a non-blocking interface for executing SQL statements, streaming result sets, and managing data transfer between an application and a PostgreSQL database.

Quelles sont les fonctionnalités principales de magicstack/asyncpg ?

Les fonctionnalités principales de magicstack/asyncpg sont : Asynchronous Database Drivers, Binary Protocol Implementations, Asynchronous Database Command Execution, Binary Type Codecs, Composite Type Encoders, PostgreSQL Pool Managers, PostgreSQL Integrations, Data Type Mappings.

Quelles sont les alternatives open-source à magicstack/asyncpg ?

Les alternatives open-source à magicstack/asyncpg incluent : brianc/node-postgres — This project is a Node.js client for PostgreSQL databases, providing a protocol parser to translate raw binary streams… encode/databases — This project is an asyncio database abstraction layer that provides a common interface for performing non-blocking… lib/pq — pq is a PostgreSQL driver for Go that implements the standard database/sql interface. It serves as a connection… mysqljs/mysql — This project is a MySQL database driver and client for Node.js. It provides a JavaScript implementation of the MySQL… doctrine/dbal — This project is a SQL database abstraction layer that provides a consistent object-oriented interface for interacting… dotnet/efcore — Entity Framework Core is an object-relational mapper that enables developers to interact with database systems using…

Alternatives open source à Asyncpg

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Asyncpg.
  • brianc/node-postgresAvatar de brianc

    brianc/node-postgres

    13,155Voir sur GitHub↗

    This project is a Node.js client for PostgreSQL databases, providing a protocol parser to translate raw binary streams into JavaScript objects. It serves as a driver for executing queries, managing data, and integrating Node.js applications with PostgreSQL backends. The library includes a connection pool manager to reduce network overhead by caching reusable connections and a result streamer that uses cursors to retrieve large datasets incrementally. It also functions as an event listener for subscribing to asynchronous server-side notifications to trigger real-time application events. Broad

    JavaScriptlibpqnode-postgrespostgres
    Voir sur GitHub↗13,155
  • encode/databasesAvatar de encode

    encode/databases

    4,002Voir sur GitHub↗

    This project is an asyncio database abstraction layer that provides a common interface for performing non-blocking database operations in Python. It functions as an asynchronous database driver wrapper and a SQL expression builder, allowing for the construction of raw SQL strings from structured Python objects. The library includes an asyncio connection pool manager that utilizes task-local storage to handle connection lifecycles and reduce resource overhead. It also serves as an async database transaction manager, wrapping operations in atomic transactions and savepoints to maintain data int

    Python
    Voir sur GitHub↗4,002
  • lib/pqAvatar de lib

    lib/pq

    9,903Voir sur GitHub↗

    pq is a PostgreSQL driver for Go that implements the standard database/sql interface. It serves as a connection library and protocol implementation that translates application data types into the binary and text formats required by PostgreSQL. The project provides specialized utilities for high-performance data ingestion using bulk data loading and a dedicated bulk data importer. It also features an implementation for listening to asynchronous server notifications and provides tools for connection load balancing across multiple hosts and ports. The driver covers a broad surface of database i

    Go
    Voir sur GitHub↗9,903
  • mysqljs/mysqlAvatar de mysqljs

    mysqljs/mysql

    18,623Voir sur GitHub↗

    This project is a MySQL database driver and client for Node.js. It provides a JavaScript implementation of the MySQL protocol to facilitate connecting to, querying, and managing data within MySQL databases. The driver includes a connection pool manager to maintain a cache of reusable database connections, reducing the overhead of frequent network handshakes. It also supports row-by-row result streaming to process large datasets without loading entire result sets into memory. Core capabilities cover SQL query execution, the management of database transactions, and the coordination of multiple

    JavaScriptjavascriptmysqlnodejs
    Voir sur GitHub↗18,623
  • Voir les 30 alternatives à Asyncpg→