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.7.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.7-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for aws-wsgi-0.0.7.tar.gz
Algorithm Hash digest
SHA256 e649d57681a368761e4520bba7aa8b178cbf8d4e020c28bb3004e0278aa6cb1e
MD5 1907b5256cd338d6e3c5b5a22383afca
BLAKE2b-256 1e4892a50318ceee528c24171c2ccc082cb22e34b3843a09acb6f912302ca646

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_wsgi-0.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2efccdac51577854f6f75194f4b553574334f16ccab7923d53c509f222c17c30
MD5 c5d964cc4b41843f20ea18a381a5a38a
BLAKE2b-256 9bea43725078b277101ab0d67418065be025348a53869b7273f9e088cb1b4f7c

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