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.6.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for aws_wsgi-0.0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd9876d0f1bd5c01f5e007ac20d25bb059266645927773db492184d119422c73 |
|
MD5 | 9f3a7c716b3ea731d4d8961cd94d9dfc |
|
BLAKE2b-256 | f49c05ef0291f5510074632215b949334ae37c9cf10c833c4c4492be34c98e2f |