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.1.1.tar.gz
(2.8 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.1.1.tar.gz.
File metadata
- Download URL: aws-wsgi-0.1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e668ce2c44b8f1433db592f948a6a9ebc62550bd2f9096ae1b11111514a5ad7e
|
|
| MD5 |
a73c0e952fe4c69b1c2352b6004a0c78
|
|
| BLAKE2b-256 |
8ba7a688314e1415d8e43e6db75e7443637f0e0bb84bef2e73eae8c0a2446a1e
|
File details
Details for the file aws_wsgi-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: aws_wsgi-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
410193009f3c8828bd28abdabd577322858b1ddc8d5884cda2f128cceb0fbd78
|
|
| MD5 |
39ecc7cc71083472631c6e4e8ece496a
|
|
| BLAKE2b-256 |
32fa231a3cc2a1acc51fd8436212e2aa12ce18ce6590cc8318543564374e21e1
|