Skip to main content

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


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 hashes)

Uploaded source

Built Distribution

local_lambda-0.0.2-py3-none-any.whl (2.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page