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 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page