Skip to main content

Lambda Runtimes

Python library for getting a list of all Lambda runtimes from AWS's documentation page, and interacting with it.

Usage

You can install the lambda-runtimes package from PyPI with pip:

pip3 install lambda-runtimes

or clone this repository and install the requirements with pip3 install -r requirements.txt

Basic Usage

The LambdaRuntimes library implements a list of LambdaRuntimes fetched from the AWS documentation website. Internally, it is just a list of results parsed from the tables on the Lambda runtimes page with some helper functions to make working with them easier.

Import the library at the top of your python file and create an instance of the LambdaRuntimes class. This fetches a list of the runtimes from the AWS docs page.

from lambdaruntimes import LambdaRuntimes
runtimes = LambdaRuntimes()

You can optionally specify another location for the source docs page if you have a cache or proxy.

from lambdaruntimes import LambdaRuntimes
runtimes = LambdaRuntimes(lambda_runtime_docs_url="http://localhost:8000/lambda-runtimes.html")

Iterating Over Runtimes

The LambdaRuntimes class is a valid iterator, so you can loop over all runtimes using normal Python flow control tools.

from lambdaruntimes import LambdaRuntimes
runtimes = LambdaRuntimes()
for runtime in runtimes:
    print(runtime)

You can also directly access the runtimes property of the instance, and iterate over it instead.

Getting a Single Runtime

You can query for a runtime by its identifier using the get_runtime() function.

runtimes.get_runtime("nodejs")
>>> LambdaRuntime(name='Node.js 0.10', identifier='nodejs', sdk=None, os='Amazon Linux', arch=None, deprecation_phase_1=datetime.datetime(2016, 10, 31, 0, 0), deprecation_phase_2=datetime.datetime(2016, 10, 31, 0, 0), runtime_is_expiring=True, runtime_is_expired=True)

Checking if a Runtime is Expiring

You can query if a runtime has a set expiry date by its identifier using the runtime_is_expiring() function.

runtimes.runtime_is_expiring("nodejs")
>>> True

Checking if a Runtime has Expired

You can query if a runtime has expired by its identifier using the runtime_is_expired() function.

runtimes.runtime_is_expired("nodejs")
>>> True

The LambdaRuntime Data Class

The iterables and functions in the library mostly return instances of the LambdaRuntime class. This data class has fields that reflect the data on the AWS documentation website.

This data class is made with Pydantic and so type hints should work in your IDE of choice.

Each instance will have at least the following properties:

name: str
identifier: str
sdk: Optional[str]
os: str
arch: Optional[str]
deprecation_phase_1: Optional[datetime] = None
deprecation_phase_2: Optional[datetime] = None
runtime_is_expiring: bool
runtime_is_expired: bool

Metadata

Release files for lambda-runtimes 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lambda-runtimes 0.0.3
File Size Uploaded
lambda_runtimes-0.0.3.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lambda-runtimes 0.0.3
File Interpreter ABI Platform
lambda_runtimes-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / lambda_runtimes-0.0.3.tar.gz

Download URL lambda_runtimes-0.0.3.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9a3068b3dc1e29d614835215e7d38783e2b0563b29f61b760f75732a86c7b50e
BLAKE2b-256 checksum
How to use checksums
11eea2c6f9e23f79c1ac000be2c05f1982a75b9931079e0e253dde5eea8d2966
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 12, 2025.

Transparency log

Release files / lambda_runtimes-0.0.3-py3-none-any.whl

Download URL lambda_runtimes-0.0.3-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6af56af46bf0d020fef87fb547140c6060e8b579ca4a87041c73a1870b5da28
BLAKE2b-256 checksum
How to use checksums
b2b776ec28774f5e92741da8592bb5215f293e079db088a1080dd8d0d33276b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 12, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page