Skip to main content

run_lambda is a Python package for running Python AWS Lambda functions locally. It offers a Python module for automated testing of Lambda functions, as well as a command-line interface for ad-hoc local invocations.

Doesn’t something like this already exist?

Not exactly. There are other programs for locally running Python Lambda functions. However, all of the other utilities (that I know of) only provide a command-line tool. A command-line tool is great for quick manual invocations. However, if you want to create robust, automated tests for your Lambda functions, a Python module that you can import and call is more appropriate. run_lambda is unique because it offers both a simple command-line tool for manual invocations, and an importable Python module for automated tests.

Features

run_lambda supports

  • An interface for examining the result (return value, exception, timeout) of a function call

  • A full implementation of AWS Context objects

  • Function calls with or without a timeout

  • Resource usage profiling (memory and run-time)

  • Convenient mocking of objects and services inside Lambda functions

Installation

The easiest way to install is via pip:

$ pip install run_lambda

You can also download the source from Github.

Documentation

Documentation for the package can be found on Read the Docs.

Metadata

Release files for run-lambda 0.1.7.2

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

Source distribution (sdist)

Source distribution for run-lambda 0.1.7.2
File Size Uploaded
run_lambda-0.1.7.2.tar.gz 10.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for run-lambda 0.1.7.2
File Interpreter ABI Platform
run_lambda-0.1.7.2-py3-none-any.whl Python 3 none any Details
run_lambda-0.1.7.2-py2-none-any.whl Python 2 none any Details

Total release size: 39.9 kB

Release files / run_lambda-0.1.7.2.tar.gz

Download URL run_lambda-0.1.7.2.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6273e874ec86331e800ada384f95dd1aa66668ade657bdc40f9772497fd46bff
BLAKE2b-256 checksum
How to use checksums
b8bf21aca4c9cd118109809f6c67dd3bec2db461cca6ab46d4bb76d6c2856eec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / run_lambda-0.1.7.2-py3-none-any.whl

Download URL run_lambda-0.1.7.2-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc0f9b4907b11239120f606cd9ce8b0fcf5d18686259543eb0c07c9ca3eb6d0c
BLAKE2b-256 checksum
How to use checksums
3534ba397736b384ba2154396ee3b5f957967b43d8bdcb6ee8290a20c8fcd4d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / run_lambda-0.1.7.2-py2-none-any.whl

Download URL run_lambda-0.1.7.2-py2-none-any.whl
Size 14.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
19475dae1c859b2161363ff610373d542ecb506cc605e1e4e890c1537868e6e1
BLAKE2b-256 checksum
How to use checksums
44cb513ec231a3799fb9d67a8761c299aa016d1d8c661805874d45365df7dddb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.7.2 This release

3 release files

0.1.7

3 release files

0.1.6

3 release files

0.1.5

4 release files

0.1.4

3 release files

0.1.3

3 release files

0.1.2

3 release files

0.1.1

3 release files

0.1.0

1 release file

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