Python3.6+ module to make Flask compatible with AWS Gateway and AWS Load Balancer
Project description
Python 3.6+ Only
Installation
pip install flask-lambda-python3.6-lb
Usage
Here is an example of what my_python_file.py would look like:
from flask_lambda import FlaskLambda app = FlaskLambda(__name__) @app.route('/foo', methods=['GET', 'POST']) def foo(): data = { 'form': request.form.copy(), 'args': request.args.copy(), 'json': request.json } return ( json.dumps(data, indent=4, sort_keys=True), 200, {'Content-Type': 'application/json'} ) if __name__ == '__main__': app.run(debug=True)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for flask-lambda-python36-lb-0.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bbefa3c5dc21367da1f07522cfec26598034f31e20f00f32d53bddd743bcdd6 |
|
MD5 | d162fc5e82fdb0f225c747c976375c58 |
|
BLAKE2b-256 | 4cc5c65406a4ec859405f1ff564f764d528ee7dbfb1b732eb3707b8120800efa |
Close
Hashes for flask_lambda_python36_lb-0.6.0-py36-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6bca496dfd514c2a7fb270acdbb34c2bf8ca3676af6a001a310e61cb5f4940d |
|
MD5 | 6340017f7d36991073e2e5c2c89c6cf9 |
|
BLAKE2b-256 | 6708b206c6d5bff6a682d5ed45c823368b17064afd7fd46b58fdcc8561f1bbcf |