Skip to content
A WSGI gateway for the AWS API Gateway/Lambda proxy integration
Branch: master
Clone or download
Matthew Wedgwood
Latest commit 62ea12a Nov 30, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
awsgi Merge pull request #16 from gabrielfalcao/master Nov 30, 2018
.gitignore
.travis.yml trying to fix deployment Oct 11, 2017
LICENSE.txt MIT License Sep 22, 2016
Makefile Automated deployment to pypi Sep 11, 2017
README.rst README - add syntax highlighting Mar 11, 2017
requirements.txt
setup.cfg
setup.py
test_awsgi.py

README.rst

AWSGI

A WSGI adapter for AWS API Gateway/Lambda Proxy Integration

AWSGI allows you to use WSGI-compatible middleware and frameworks like Flask and Django with the AWS API Gateway/Lambda proxy integration.

Installation

awsgi is available from PyPI as aws-wsgi:

pip install aws-wsgi

Example

import awsgi
from flask import (
    Flask,
    jsonify,
)

app = Flask(__name__)


@app.route('/')
def index():
    return jsonify(status=200, message='OK')


def lambda_handler(event, context):
    return awsgi.response(app, event, context)
You can’t perform that action at this time.