Skip to main content

translation from the aws api gateway v2.0 lambda event to wsgi

Project description

build status pre-commit.ci status

api-gateway-v2-to-wsgi

translation from the aws api gateway v2.0 lambda event to wsgi

installation

pip install api-gateway-v2-to-wsgi

usage

import api_gateway_v2_to_wsgi

from ... import app

# app is your wsgi callable, such as the `Flask(...)` object from `flask`
lambda_handler = api_gateway_v2_to_wsgi.make_lambda_handler(app)

sample application

for a full sample, see testing/example

more information

for more information on how I set up my lambda, see testing/example.md.

additionally, see the api gateway documentation (though it's not very good at the time of writing so glhf)

seems the lambda integration guide is slightly better

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

api_gateway_v2_to_wsgi-1.1.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

api_gateway_v2_to_wsgi-1.1.1-py2.py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 2 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