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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file api_gateway_v2_to_wsgi-1.1.1.tar.gz.

File metadata

File hashes

Hashes for api_gateway_v2_to_wsgi-1.1.1.tar.gz
Algorithm Hash digest
SHA256 fe607da6f5aac952bd863733aa11a3dcfa5b924dd5b1f8e69709c5afa9782787
MD5 21e13b4719ef5f5d7b1ed775c209e9bc
BLAKE2b-256 7d74a253d574d355b0158e83a7ac0aa7a99ff418ea39837ce9416bcd70160dc0

See more details on using hashes here.

File details

Details for the file api_gateway_v2_to_wsgi-1.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for api_gateway_v2_to_wsgi-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da113aee9a1f4ff103c54069905057d42b0fef9484f794848cc072ab5d6d8043
MD5 fb0730a0ff5c99c1fac05bcc086b2f55
BLAKE2b-256 d7ab145b84f09f525351ecd04b9c08d7876430a6ce05ae00ae7157489926c722

See more details on using hashes here.

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