Simple mechanism for running lambdas locally for testing
Project description
local_lambda
Simple mechanism to run lambdas as if they were behind an API gateway
Installation
$ pip install local_lambda
Running
Create a configuration file named .local-lambda.json
with a format simlar to this replacing with your funcitons and URLs
{
"endpoints": {
"/test": {
"GET": {
"function": "tests.functions.main.debug_me"
},
"POST": {
"function": "tests.functions.main.debug_me"
}
}
}
}
Run the following command:
$ local_lambda
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
local_lambda-0.0.2.tar.gz
(7.6 kB
view details)
Built Distribution
File details
Details for the file local_lambda-0.0.2.tar.gz
.
File metadata
- Download URL: local_lambda-0.0.2.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40ad42eb740a64caee47dbbf36e93470a7e765023978bf2b27b0f385f1ad91e3 |
|
MD5 | 46c4529de6148d135a83b05c60fca940 |
|
BLAKE2b-256 | 443e5ea8c1051527da30ede5404254dee202afcddb6342956d80ac61729facf1 |
File details
Details for the file local_lambda-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: local_lambda-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef10fbae211f0e1ccdaf097d9fff0b5725e4462a010f728434e502f22d99fab2 |
|
MD5 | cff2c6cc35a35bfaddf816451e974f77 |
|
BLAKE2b-256 | bb83425035edb0377b36f9599bc504b2c75ab28bc5fd1167f45a5d328228feb0 |