Skip to main content

WSGI adapter for AWS API Gateway/Lambda Proxy Integration

Project description

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


awsgi is available from PyPI as aws-wsgi:

pip install aws-wsgi


import awsgi
from flask import (

app = Flask(__name__)

def index():
    return jsonify(status=200, message='OK')

def lambda_handler(event, context):
    return awsgi.response(app, event, context, base64_content_types={"image/png"})

Project details

Download files

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

Files for aws-wsgi, version 0.2.7
Filename, size File type Python version Upload date Hashes
Filename, size aws_wsgi-0.2.7-py2.py3-none-any.whl (4.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size aws-wsgi-0.2.7.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page