AWS Lambda WSGI - WSGI adapter for AWS API Gateway/Lambda Proxy Integration
Project description
aws-lambda-wsgi
A WSGI adapter for AWS API Gateway/Lambda Proxy Integration
AWS-Lambda-WSGI allows you to use WSGI-compatible middleware and frameworks like Bottle, Django and Flask with the AWS API Gateway/Lambda proxy integration.
Based on awsgi, by Matthew Wedgwood.
Installation
aws_lambda_wsgi
is available from PyPI as aws_lambda_wsgi
:
pip install aws_lambda_wsgi
Example
import aws_lambda_wsgi
from bottle import Bottle
app = Bottle()
@app.route('/')
def index():
return {'message': 'OK'}
def lambda_handler(event, context):
return aws_lambda_wsgi.response(app, event, context)
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
aws_lambda_wsgi-0.0.5.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for aws_lambda_wsgi-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fa63fd612c4c59d7c99ceeb70da1a36db865f7a04f8afd9d33099d2c9810f3b |
|
MD5 | 46da06e996690ae0cbf206bd51a0857f |
|
BLAKE2b-256 | 8f12b1a9a8bcc1ea2710c9344c570435ec0d69e70851b3453aa1f0a23b16526c |