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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e2ccc25a2900a3169f02109d0745d7b9357e591c251756ebe99a71d17aa2abf |
|
MD5 | ecbed005f528021e2857fb6cd9a77017 |
|
BLAKE2b-256 | 564c386aa5d36b3aeb85ea40bfe973618126fa4d15ccb33eeb3c7fc79ec58699 |
Close
Hashes for flask_lambda_python36_lb-0.3.0-py36-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 406478fe5ae8d85b9c65195e586abf3b2d1361325d2101f6c0d56138aa65bebf |
|
MD5 | 6c8a5fdbf28d75ac9cfc4ffd5069f43e |
|
BLAKE2b-256 | a76b6ee84ca4dbdb2ba89448c458553ddcc20448ec65953641c51239ecb52866 |