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.8.tar.gz
(2.6 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.8.tar.gz.
File metadata
- Download URL: aws-wsgi-0.0.8.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d18d236f7055d44f5e7561e1413afd1a266923fe7d9c32fafe7867d67edeff2
|
|
| MD5 |
1716094a53c8338b78839b1a3df48b18
|
|
| BLAKE2b-256 |
bcd2b5560e2154c73272e929a085d179710897034fc0e61a3be6469fde188918
|
File details
Details for the file aws_wsgi-0.0.8-py2.py3-none-any.whl.
File metadata
- Download URL: aws_wsgi-0.0.8-py2.py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7455d718763d746c34039f0a87661cdfe626d73a70f76279168109e3ab72f5a3
|
|
| MD5 |
a05cb1dade4d06021ab943c885e1657c
|
|
| BLAKE2b-256 |
22258ec64052a80dd7b2e357ce8a59fedd8ac546156c911f9ae2a5417b6924a5
|