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.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 953f8f0df23f3f2239144771c8cc0b7cd16a4289952d6e3d0c3227093876de8c |
|
MD5 | 55ac370dd4cbd81b7f485cf27d6442a1 |
|
BLAKE2b-256 | 47751e9cecc98ed98939863cc7d453a718e581b62b3cd8edb07d3221a7067515 |
Hashes for run_lambda-0.1.6-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ccedce676e8999b2b2743bafa3b21d4b99f3a1d8e11ec0410f0eb3049cf00ef |
|
MD5 | f7f2af3c9e00df18b51aeb0cbe06f6e9 |
|
BLAKE2b-256 | 5a3efbbcd86aa8b5c3f7cbc61a216aa1130a76a87a64113fe4530f50d023598c |