skillfed

awslambdaric

AWS Lambda Runtime Interface Client for Python

awslambdaric v4.0.2 3.2M downloads/30d#2,709 on PyPI293
Permissive license Active released

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 awslambdaric

uv

uv add awslambdaric

poetry

poetry add awslambdaric

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Tags

lambda python runtime interfacecustom lambda container imagelambda runtime api clientpython lambda runtimelambda docker image supportaws lambda custom runtimelambda runtime interface emulator
aws-lambdacontainer-runtimeserverless

More Application Frameworks packages