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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for aws-wsgi-0.0.6.tar.gz
Algorithm Hash digest
SHA256 f8d69c9a29ba08d533148be3e5385d30fc090413717fd620eab07ca6e4c73a45
MD5 64fcaeb9cd46545cc191dcf130c3d5e3
BLAKE2b-256 4ecff1345d31d97184b43eba12f6feb01dcf30c3c45f501f6379155cd3e5db84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_wsgi-0.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cd9876d0f1bd5c01f5e007ac20d25bb059266645927773db492184d119422c73
MD5 9f3a7c716b3ea731d4d8961cd94d9dfc
BLAKE2b-256 f49c05ef0291f5510074632215b949334ae37c9cf10c833c4c4492be34c98e2f

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