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
File details
Details for the file run_lambda-0.1.7.2.tar.gz
.
File metadata
- Download URL: run_lambda-0.1.7.2.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6273e874ec86331e800ada384f95dd1aa66668ade657bdc40f9772497fd46bff |
|
MD5 | ddda690ea98f6857e6f8b8805169348e |
|
BLAKE2b-256 | b8bf21aca4c9cd118109809f6c67dd3bec2db461cca6ab46d4bb76d6c2856eec |
File details
Details for the file run_lambda-0.1.7.2-py3-none-any.whl
.
File metadata
- Download URL: run_lambda-0.1.7.2-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc0f9b4907b11239120f606cd9ce8b0fcf5d18686259543eb0c07c9ca3eb6d0c |
|
MD5 | 52444fc02a9ba0ba7ed65515bcb6e4c1 |
|
BLAKE2b-256 | 3534ba397736b384ba2154396ee3b5f957967b43d8bdcb6ee8290a20c8fcd4d5 |
File details
Details for the file run_lambda-0.1.7.2-py2-none-any.whl
.
File metadata
- Download URL: run_lambda-0.1.7.2-py2-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19475dae1c859b2161363ff610373d542ecb506cc605e1e4e890c1537868e6e1 |
|
MD5 | 5d8398d8b783d5043fe03d7b5686514b |
|
BLAKE2b-256 | 44cb513ec231a3799fb9d67a8761c299aa016d1d8c661805874d45365df7dddb |