Skip to main content

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

This version
History Node

0.0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
aws_lambda_wsgi-0.0.4-py3-none-any.whl (2.9 kB) Copy SHA256 hash SHA256 Wheel py3 Sep 4, 2018
aws_lambda_wsgi-0.0.4.tar.gz (2.9 kB) Copy SHA256 hash SHA256 Source None Sep 4, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page