aws-psycopg2
A aws psycopg2 package from psycopg2.
Decision gist · record as of 2026-08-14
Yes, if you are deploying psycopg2 to AWS Lambda and do not want to manage custom compilation or Lambda layers. However, verify that the bundled PostgreSQL version and psycopg2 release remain compatible with your target Lambda runtime and database version, since the package has not been updated since 2022-07-02.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Designed for AWS Lambda; requires Lambda execution environment or compatible system with statically linked PostgreSQL libraries.
- Low install friction with a wheel distribution.
- Maintenance is dormant—last release was 2022-07-02 and no commits since 2024-03-10—so updates and bug fixes should not be expected.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), so you can use and modify the package freely in commercial or private projects without restriction.
last release 2022-07-02 (1504 days) · last repo commit 2024-03-10 · 80 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,382,210 downloads/mo, #2,643 on PyPI
Alternatives
Verify before relying
pip install aws-psycopg2
import psycopg2
conn = psycopg2.connect("dbname=mydb user=postgres host=localhost")- Whether the statically linked PostgreSQL version remains compatible with current AWS Lambda runtime environments
- Whether this package works with modern psycopg2 versions or if it is tied to an older release
- Support status for Python 3 versions beyond what the classifiers indicate
What it is and what it does
aws-psycopg2 is a pre-compiled variant of the psycopg2 PostgreSQL driver for Python, designed specifically to work in AWS Lambda. Standard psycopg2 relies on system PostgreSQL libraries (libpq) that are not present in Lambda's execution environment. This package solves that by bundling a statically linked version of libpq, allowing you to connect to PostgreSQL databases directly from Lambda functions without additional layer setup or custom compilation.
The package has no runtime dependencies and installs as a simple wheel. It is intended as a drop-in replacement for psycopg2 in Lambda contexts, though its dormant maintenance status (last release 2022-07-02) means it may not track the latest psycopg2 features or security updates.
Use it for
- Connect to RDS PostgreSQL databases from AWS Lambda functions without packaging custom compiled libraries
- Query PostgreSQL in Lambda-based data pipelines or ETL workflows
- Build Lambda-triggered database operations for event-driven architectures
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are deploying psycopg2 to AWS Lambda and do not want to manage custom compilation or Lambda layers.
However, verify that the bundled PostgreSQL version and psycopg2 release remain compatible with your target Lambda runtime and database version, since the package has not been updated since 2022-07-02.
Install
aws-psycopg2 on PyPI
Before you install
Low install friction with a wheel distribution. Maintenance is dormant—last release was 2022-07-02 and no commits since 2024-03-10—so updates and bug fixes should not be expected.
Designed for AWS Lambda; requires Lambda execution environment or compatible system with statically linked PostgreSQL libraries.
License in practice
Licensed under MIT (permissive), so you can use and modify the package freely in commercial or private projects without restriction.
Quickstart
pip install aws-psycopg2
import psycopg2
conn = psycopg2.connect("dbname=mydb user=postgres host=localhost")
Verify before relying
- Whether the statically linked PostgreSQL version remains compatible with current AWS Lambda runtime environments
- Whether this package works with modern psycopg2 versions or if it is tied to an older release
- Support status for Python 3 versions beyond what the classifiers indicate
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 1,504 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,382,210 / month, #2,643 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: aws_psycopg2-1.3.8-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “psycopg2 aws lambda”
- aws-psycopg2Provides psycopg2 with statically linked PostgreSQL libraries for use…
- sqlalchemy-rdsiamProvides SQLAlchemy dialects for connecting to Amazon RDS PostgreSQL…
- aws-cdk.asset-awscli-v1Bundles AWS CLI v1 as a reusable asset for AWS CDK Lambda Layers,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also psycopg2 · PyPgConfig · postgres · psycopg · sqlalchemy-rdsiam · sqlalchemy-pgspider · PyGreSQL · psycogreen · types-psycopg2