Skip to content
forked from slank/awsgi

A WSGI gateway for the AWS API Gateway/Lambda proxy integration

License

Notifications You must be signed in to change notification settings

puzzle-it/awsgi

 
 

Repository files navigation

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)

About

A WSGI gateway for the AWS API Gateway/Lambda proxy integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.3%
  • Makefile 3.7%