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 on Read the Docs.
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.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8a3c1a5e7ebe59a94ad15666547b1c2f51144c60ec9268fa0f74a84347ae4ad |
|
MD5 | fcd032607807870f8c49fb3620041b7e |
|
BLAKE2b-256 | 1d2d6258c01aa993f9c56bafb551aeaf707682dd279c6685ba4c67c82b6ad12b |
Hashes for run_lambda-0.1.7-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d04aab6f0959d66b4f028ff7035d059c3dbe4ba7800fa8afa6cee1b6f5903f84 |
|
MD5 | 248fd8c961b322f4e52c2fcd2995f9a8 |
|
BLAKE2b-256 | 366c58b8310dbfd7446ab4900b3ce9df33d3aa20c13864a61b00bd2a66772669 |