aws-cdk.aws-lambda-python-alpha
The CDK Construct Library for AWS Lambda in Python
Decision gist · record as of 2026-08-14
Yes, with conditions. Install if you are using AWS CDK to manage Lambda infrastructure and want Python function packaging automated. The low install friction and active maintenance are positive signals. However, be aware that this is a Beta library with experimental APIs—breaking changes can occur between versions without semantic versioning guarantees, so pin your version and review release notes before upgrading. Docker is a hard requirement for local development.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Docker must be installed and running locally; the construct uses Docker containers to package dependencies in a Lambda-compatible environment.
- Active maintenance with a release within 1 day of this fact sheet.
- Low install friction from a pure-dependency standpoint, but requires Docker to be installed locally for packaging Python Lambda functions and layers.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
last release 2026-08-13 (1 days) · last repo commit 2026-08-14 · 12,868 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,617,559 downloads/mo, #3,714 on PyPI
Alternatives
Verify before relying
pip install aws-cdk-aws-lambda-python-alpha
from aws_cdk_aws_lambda_python_alpha import PythonFunction
PythonFunction(self, "MyFunction",
entry="/path/to/my/function",
runtime=Runtime.PYTHON_3_8
)- Stability guarantee: description states APIs are experimental and subject to non-backward compatible changes; impact on production use unclear.
- Performance characteristics of Docker-based packaging for large dependency trees not documented in excerpt.
- Whether all Python versions listed in classifiers (3.10 through 3.14) are equally supported or if some are preferred.
What it is and what it does
This is an AWS CDK library that provides high-level Python constructs for defining AWS Lambda functions and layers. It abstracts away the complexity of packaging Python code and dependencies into Lambda-compatible artifacts by automatically detecting and bundling requirements from `requirements.txt`, `Pipfile`, `poetry.lock`, or `uv.lock` files. The library uses Docker to ensure dependencies are compiled and packaged in an environment matching the target Lambda runtime, supporting multiple Python versions and custom bundling options for private package repositories or custom Docker images.
The package is built on top of aws-cdk-lib, constructs, jsii, and publication, and is actively maintained. It requires Python 3.10 or later and is classified as Beta. The description explicitly warns that its APIs are experimental and subject to breaking changes without semantic versioning guarantees, meaning upgrades may require code updates.
Use it for
- Define and deploy Python Lambda functions with automatic dependency resolution using CDK infrastructure-as-code.
- Create reusable Lambda layers with shared Python dependencies that multiple functions can reference.
- Package Python code for Lambda using poetry, pipenv, or uv lockfiles to ensure reproducible builds.
- Deploy Lambda functions to private package repositories using custom bundling options.
- Exclude files from Lambda bundles to reduce package size.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
Install if you are using AWS CDK to manage Lambda infrastructure and want Python function packaging automated. The low install friction and active maintenance are positive signals. However, be aware that this is a Beta library with experimental APIs—breaking changes can occur between versions without semantic versioning guarantees, so pin your version and review release notes before upgrading. Docker is a hard requirement for local development.
Install
aws-cdk-aws-lambda-python-alpha on PyPI
Before you install
Active maintenance with a release within 1 day of this fact sheet. Low install friction from a pure-dependency standpoint, but requires Docker to be installed locally for packaging Python Lambda functions and layers.
Docker must be installed and running locally; the construct uses Docker containers to package dependencies in a Lambda-compatible environment.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install aws-cdk-aws-lambda-python-alpha
from aws_cdk_aws_lambda_python_alpha import PythonFunction
PythonFunction(self, "MyFunction",
entry="/path/to/my/function",
runtime=Runtime.PYTHON_3_8
)
Verify before relying
- Stability guarantee: description states APIs are experimental and subject to non-backward compatible changes; impact on production use unclear.
- Performance characteristics of Docker-based packaging for large dependency trees not documented in excerpt.
- Whether all Python versions listed in classifiers (3.10 through 3.14) are equally supported or if some are preferred.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesaws-cdk-libconstructsjsiipublication |
| Maintenance | Actively maintained 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,617,559 / month, #3,714 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaFramework :: AWS CDKFramework :: AWS CDK :: 2Intended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed |
Evidence: aws_cdk_aws_lambda_python_alpha-2.265.0a0-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 › “lambda function constructs”
- aws-cdk.aws-lambda-python-alphaProvides AWS CDK constructs for defining, packaging, and deploying…
- aws-cdk.aws-signerProvides AWS CDK constructs for defining code-signing infrastructure…
- aws-cdk.aws-lambdaDefines AWS Lambda functions and layers as infrastructure-as-code…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also aws-cdk.aws-lambda · aws-cdk.aws-sam · aws-cdk.asset-awscli-v1 · aws-cdk.aws-codestar-alpha · aws-cdk.lambda-layer-kubectl-v35 · aws-cdk.aws-s3-assets · aws-cdk.asset-kubectl-v20 · aws-cdk.aws-imagebuilder · datadog-cdk-constructs-v2 · aws-cdk.asset-node-proxy-agent-v6