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
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.2.2.tar.gz
(3.1 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.2.2.tar.gz.
File metadata
- Download URL: aws-wsgi-0.2.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d7e83b11969cd57c042ab6671b8acf4c824b8ade6187c9df69b735e0a211cd2
|
|
| MD5 |
e7b818b541f1d219b26b5bf282952f8b
|
|
| BLAKE2b-256 |
b8b53f79cf24a3550f9477058b9997ba0a7829444417f7d532d93cea3fcdf3e0
|
File details
Details for the file aws_wsgi-0.2.2-py2.py3-none-any.whl.
File metadata
- Download URL: aws_wsgi-0.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e27cf69896dd605aa6ede8bec1e3822931e0520e572da19a1fae4c560ea79613
|
|
| MD5 |
2c97a3313700fe76399d0470219b8d15
|
|
| BLAKE2b-256 |
cac82724de875e3ef1cf79007267d763169fb99f90df9ffb8ead37f2f2fc7127
|