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.

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)

Project details


Download files

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

Source Distribution

aws-wsgi-0.0.5.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_wsgi-0.0.5-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file aws-wsgi-0.0.5.tar.gz.

File metadata

  • Download URL: aws-wsgi-0.0.5.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aws-wsgi-0.0.5.tar.gz
Algorithm Hash digest
SHA256 45d454fe37d0414f6198687ee15815630945558c78b8fbce4d2687fdc52ecd8f
MD5 98d5e4de563c15a3854aa9fe4b6903ea
BLAKE2b-256 49b4ab4d2b45bb92dddf7f9575643e76c4fc933cb5ad533988b39d8c778a488c

See more details on using hashes here.

File details

Details for the file aws_wsgi-0.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for aws_wsgi-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a4f37cd7605ef1b40f84601f4c0304e44e5c834b893e759959dc0eb9adfaa821
MD5 e209bf145f82d6d8a21b751e09f59c16
BLAKE2b-256 3cf83735c7aa88c67f8979d3cc1932701f1bc40e541c0d21653e0aaeba9395c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page