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.3.tar.gz (3.1 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.3-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: aws-wsgi-0.2.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for aws-wsgi-0.2.3.tar.gz
Algorithm Hash digest
SHA256 496c55b2489ceb3119db0df0d2a7f1839ab3b35eac31d80053e0402e043b1ee0
MD5 b2275a03ce42fca9d3ac86b9f4996549
BLAKE2b-256 435bb44a89c0d2bea5eaa5685b7ca983087abf847cbc88dc90968ac189d024e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_wsgi-0.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for aws_wsgi-0.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1f8716e721ab858acdbcc37c8d38c1d76e04ece5ca8539fdcfce464c737d0379
MD5 b7d1380b08c5525251bf981909b0d7c7
BLAKE2b-256 f2eed40bfe70ffd15770588b9e81f41d21cd02e09ad47241512c5f5c7632e1e2

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