Run AWS Lambda functions locally
Project description
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 here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for run_lambda-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa1dcf9d974b04f46701924d703b149e28300fe4a735fd25b23ff61e46aa7ab6 |
|
MD5 | 564801d937c61a4c14e47b27dd9f2777 |
|
BLAKE2b-256 | 84cba9e3acd4e27f591a12ff000bd7b53870571cecd50256823f215a2beb9b01 |
Hashes for run_lambda-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c87110182f2335b17f5652afa7a7d9f9618af79b9cb4fd649d17467af1b53cf2 |
|
MD5 | a7328ce9a094936384b147da3cbea04c |
|
BLAKE2b-256 | f6debd19ff80f9493f1f46fd960865cb68674b57a015a839e387f80e10b7582b |
Hashes for run_lambda-0.1.5-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43e14ca850e6c29a701ef18689049b771e2c1e50a721b7bb02af42d837afb52c |
|
MD5 | 13521a32b7c005e682ced1f045a6ec95 |
|
BLAKE2b-256 | a89a8078e270a2c3c41d6cbd77982456b8b35b52d8d897f5ae863f117e2b1017 |