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.4.tar.gz
(3.2 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.4.tar.gz.
File metadata
- Download URL: aws-wsgi-0.2.4.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e05843ae718c077411012c783d043dd9dd39e70992bd6d65ecb0f549532ce31
|
|
| MD5 |
f221695aad6ee0f0d349c83484614ac1
|
|
| BLAKE2b-256 |
d6f124c7b462e52dba9cb28264fe98ef7a1f36b0dad559228bfb332166ed829f
|
File details
Details for the file aws_wsgi-0.2.4-py2.py3-none-any.whl.
File metadata
- Download URL: aws_wsgi-0.2.4-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/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93a4f61e28fe0faf798de9c01e82df39b407e12d016c70f6d4ca38a257f9c39f
|
|
| MD5 |
a1652e72b5929e80043a0d2486edbe47
|
|
| BLAKE2b-256 |
b28bb81875c1fdb48ef6f134d9dca8e9dc637fd735f553e7a11a0b04703f8cfc
|