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
Release history Release notifications | RSS feed
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.4.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws-wsgi-0.0.4.tar.gz.
File metadata
- Download URL: aws-wsgi-0.0.4.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bc5a45c9ac5b7828ef85af44545600273f5ca942995d19a976be5bc82474a2e
|
|
| MD5 |
eeab92b802950c4cc5e8395068ff5ed9
|
|
| BLAKE2b-256 |
b55abaf032fb7d5b3df36aa694a2dd9e37c79d8cfb457a2a45869515144601fc
|
File details
Details for the file aws_wsgi-0.0.4-py2.py3-none-any.whl.
File metadata
- Download URL: aws_wsgi-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac09464fb9b7b78382f9bc69abaa1537de4ca4a688efe15f3f0da63251b4d6ee
|
|
| MD5 |
1310e51fc1a8d1b55a6763dba0769bee
|
|
| BLAKE2b-256 |
595863cf545b1c4788be38ba139c97c9a99c700798591c08fab9fb91db5a6296
|