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.3.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.3.tar.gz.
File metadata
- Download URL: aws-wsgi-0.0.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4357200af765541edf548a2e89a521210eeb3f87383b9aa0333af1720dab422f
|
|
| MD5 |
203579817c25468d90c748277e0eeaa7
|
|
| BLAKE2b-256 |
29e6533c7536bc69a51edb9f58b8c67fc6ded43c9a5465200f20ac07143faf46
|
File details
Details for the file aws_wsgi-0.0.3-py2.py3-none-any.whl.
File metadata
- Download URL: aws_wsgi-0.0.3-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 |
2054252acd91a6eb46d8faab25dc952dc3494380afb4c0f37aafadc7b6b07cfd
|
|
| MD5 |
bbbabe4b999e1115898779d754e45e18
|
|
| BLAKE2b-256 |
fb1c4c4df508ac0480682c9e7a10a2a784351febe2db4f9d12df2f26a3ebf3ab
|