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.5.tar.gz (3.2 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.2.5-py2.py3-none-any.whl (4.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: aws-wsgi-0.2.5.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.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.15

File hashes

Hashes for aws-wsgi-0.2.5.tar.gz
Algorithm Hash digest
SHA256 a91466a02e128ac08794b0b3a8d6cc1c571990f46a92ada5a735ecc003d02eea
MD5 6c0a54c645e79cd8340a004f84aa6bd9
BLAKE2b-256 786ebc91a902970c31ee643e0a2c52815e6db6a751c6243d37c370ab2256ae23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_wsgi-0.2.5-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.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.15

File hashes

Hashes for aws_wsgi-0.2.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8d35c855094a6aa48be968d25b96e480399019d1f2ccc809ae6078ec18f9536e
MD5 fd5ee1f55dfc97d9db7fccaa519e1719
BLAKE2b-256 35d37a018b67c8b8ca065e86a77b855e2b75566978a9357f03fd663a27724b60

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