Skip to content

WSGI adapter for AWS API Gateway/Lambda Proxy Integration. Mirrored from GitLab.

License

Notifications You must be signed in to change notification settings

truckpad/aws-lambda-wsgi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)