{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/2"},{"label":"Front-Ends","url":"https://skillfed.io/packages/category/database-front-ends"}],"enrichment":{"capability":"aiopg provides asyncio-based access to PostgreSQL databases, wrapping psycopg2 to enable non-blocking queries and connection pooling in async Python applications.","skillfed_tags":["async-database","postgres","connection-pooling"],"use_cases":["Build async web services (FastAPI, aiohttp) that query PostgreSQL without blocking I/O.","Implement concurrent batch processing where multiple coroutines execute database queries in parallel.","Use SQLAlchemy ORM asynchronously by leveraging aiopg.sa for schema-driven database operations.","Manage connection pools efficiently in long-running async applications to avoid resource exhaustion.","Write async database migrations or data pipelines that process large datasets without halting the event loop."],"what_it_does":"aiopg is an asyncio driver for PostgreSQL that wraps psycopg2's synchronous interface to provide non-blocking database access. It lets you execute queries, manage transactions, and maintain connection pools without blocking the event loop\u2014essential for async web frameworks and concurrent applications that need to query PostgreSQL.\n\nThe library supports both raw SQL execution via cursors and optional SQLAlchemy integration for ORM-style queries. It handles connection pooling, transaction management, and cursor operations asynchronously. Two runtime dependencies\u2014psycopg2-binary and async-timeout\u2014provide the underlying database driver and timeout handling.","worth_installing":"Yes, with conditions. aiopg is stable and production-ready for async PostgreSQL access, with low install friction and no known vulnerabilities. However, the aging maintenance status (last release October 2022) means it may lag behind recent PostgreSQL or asyncio changes. Install it if you need async PostgreSQL support in an existing codebase or stable async framework; evaluate alternatives if you require cutting-edge PostgreSQL features or are starting a new project where ongoing maintenance is critical."},"id":"aiopg","links":{"html":"https://skillfed.io/packages/aiopg","md":"https://skillfed.io/packages/aiopg.md","pypi":"https://pypi.org/project/aiopg/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2022-10-26","license_spdx":null,"license_treatment":"permissive","name":"aiopg","python_support":"supports_current","summary":"Postgres integration with asyncio."},"popularity":{"monthly_downloads":634709,"position":5643,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4.0"}
