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.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67118174ee95a47e946a33490bbe4b26dbfbafea933a28e4c3d1635577145896 |
|
MD5 | ddfbabc33d7bc423ac82d67393ac0687 |
|
BLAKE2b-256 | fe8a6d621ea030f6944195c7e14065ea9cf49eba2ef92e8219a6938fe85c031c |
Close
Hashes for flask_lambda_python36_lb-0.3.2-py36-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d8456fe045931c474b7cc74478826cf6a53bb68587ba3054f64b4e3fd2a7758 |
|
MD5 | 1a25ffa9e1922ce56d9286b6a144c6d5 |
|
BLAKE2b-256 | 27ac80e48e9c80bc43500f17e0ac94221b02f6f51a5ee65cd9117948d60a77b6 |