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, 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.

Source Distribution

aws-wsgi-0.2.7.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

aws_wsgi-0.2.7-py2.py3-none-any.whl (4.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: aws-wsgi-0.2.7.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/2.7.15

File hashes

Hashes for aws-wsgi-0.2.7.tar.gz
Algorithm Hash digest
SHA256 eb0b00970e80d96b52c0806ceae2ff98ab96c90f67651765755c5236f9e6e50d
MD5 2e6bd137253272c989210cd234a042d0
BLAKE2b-256 3493c74bf22bd1baba1ed052f970f60a1f7264f6746383c953da308aacb6c226

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_wsgi-0.2.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/2.7.15

File hashes

Hashes for aws_wsgi-0.2.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 37e16b6a211f251d9f72ab85018c4127a59dc0fc81263c19f312a6a8333f9908
MD5 ac821e7aff57c9d5f0c6417c939840d9
BLAKE2b-256 8dd2c032a448fb54ce145d257bc4db57dbeb7f2cead892d43204cc818482f41c

See more details on using hashes here.

Supported by

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