awslambdaric
AWS Lambda Runtime Interface Client for Python
What it is and what it does
awslambdaric is the official AWS Lambda Runtime Interface Client for Python. It implements the Lambda Runtime API, enabling you to package Python Lambda functions in custom Docker container images rather than relying on AWS-managed runtimes. You install it in your Dockerfile, set it as the entrypoint, and point it to your handler function; the package then manages the communication protocol between your code and the Lambda service.
The package supports Python 3.9 through 3.13 and is distributed as pre-built wheels for common Linux architectures (x86_64 and aarch64, both glibc and musl variants). It has two runtime dependencies: simplejson and snapshot-restore-py. The package is actively maintained by AWS, with no known security vulnerabilities, and is suitable for production use.
Use it for:
- Package Python Lambda functions in custom base images (Amazon Linux 2, Alpine, Debian, Ubuntu) to control dependencies and layer sizes.
- Extend existing Docker images to be Lambda-compatible without rewriting your application code.
- Use the Lambda Runtime Interface Emulator locally to test container-based Lambda functions before deployment.
- Build Lambda functions that require system libraries or compiled dependencies not available in AWS-managed runtimes.
- Implement custom Python runtimes or middleware that wrap the Lambda Runtime API for specialized workloads.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Implements the AWS Lambda Runtime API to make custom Python container images Lambda-compatible, allowing you to package and run Python functions on AWS Lambda using your own base images.
Yes. This is the official, actively maintained AWS package required to run Python Lambda functions in custom container images. It has no known vulnerabilities, supports current Python versions, carries a permissive Apache-2.0 license, and is production-stable. Install it if you are building containerized Lambda functions; it is not needed for Lambda functions deployed as .zip archives using AWS-managed runtimes.
Install
awslambdaric on PyPI
pip
pip install awslambdaricuv
uv add awslambdaricpoetry
poetry add awslambdaricInstalling awslambdaric
Before you install
Medium install friction due to binary wheel distribution across multiple Python versions and architectures; however, the package is actively maintained (last commit 2026-08-13) with no known vulnerabilities and supports current Python versions (3.9 through 3.13).
License in practice
Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution in both open-source and proprietary projects with minimal restrictions.
Quickstart
pip install awslambdaric
# In your Dockerfile:
ENTRYPOINT [ "/usr/local/bin/python", "-m", "awslambdaric" ]
CMD [ "app.handler" ]
# In app.py:
def handler(event, context):
return "Hello World!"
Requires Docker to build and run Lambda container images; the package itself runs only on Linux (manylinux2014 or musllinux distributions).
Verify before relying
- Whether simplejson and snapshot-restore-py are required at runtime or only for specific use cases.
- Performance characteristics when handling high-concurrency Lambda invocations.
- Compatibility with custom Lambda extensions or layers built on this runtime.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 2 — simplejson, snapshot-restore-py |
| Maintenance | actively maintained — 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,182,421/month — #2,709 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: awslambdaric-4.0.2-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; awslambdaric-4.0.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; awslambdaric-4.0.2-cp310-cp310-musllinux_1_2_aarch64.whl; awslambdaric-4.0.2-cp310-cp310-musllinux_1_2_x86_64.whl; awslambdaric-4.0.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; awslambdaric-4.0.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; awslambdaric-4.0.2-cp311-cp311-musllinux_1_2_aarch64.whl; awslambdaric-4.0.2-cp311-cp311-musllinux_1_2_x86_64.whl; awslambdaric-4.0.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; awslambdaric-4.0.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; awslambdaric-4.0.2-cp312-cp312-musllinux_1_2_aarch64.whl; awslambdaric-4.0.2-cp312-cp312-musllinux_1_2_x86_64.whl; awslambdaric-4.0.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; awslambdaric-4.0.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; awslambdaric-4.0.2-cp313-cp313-musllinux_1_2_aarch64.whl; awslambdaric-4.0.2-cp313-cp313-musllinux_1_2_x86_64.whl; awslambdaric-4.0.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; awslambdaric-4.0.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; awslambdaric-4.0.2-cp314-cp314-musllinux_1_2_aarch64.whl; awslambdaric-4.0.2-cp314-cp314-musllinux_1_2_x86_64.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
apig-wsgiWraps a WSGI application to run as an AWS…
permissive · top 15,000 on PyPI
python-on-whalesA Python Docker client that wraps the Docker…
permissive · top 5,000 on PyPI
mangumMangum adapts ASGI applications to run on AWS…
permissive · top 5,000 on PyPI
awscliProvides a unified command-line interface to…
permissive · top 1,000 on PyPI
aws-cdk.aws-apprunner-alphaProvides AWS CDK constructs for deploying…
permissive · top 15,000 on PyPI
awsgi2Bridges WSGI-compatible web frameworks to AWS…
permissive · top 15,000 on PyPI
aws-cdk.asset-kubectl-v20Provides a Lambda Layer containing kubectl…
permissive · top 5,000 on PyPI
boto3Boto3 is the official AWS SDK for Python,…
permissive · top 100 on PyPI
aws-cdk.aws-lambda-python-alphaProvides AWS CDK constructs for defining,…
permissive · top 5,000 on PyPI
botocoreBotocore provides low-level, data-driven access…
permissive · top 100 on PyPI