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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f050b6843be345486000f0f79a14b39287538a12cad8c064b6918fdc704f1ce8 |
|
MD5 | 4f9ad8cd0aedeac4a7dbdfb5614b3bfc |
|
BLAKE2b-256 | 15707d7833cf93c41712fea869a4461def39a5b6c195b7e032268ec8614b9f91 |
Close
Hashes for flask_lambda_python36_lb-0.4.0-py36-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75781d1c4b154f4e3c3ab25c582b3ce006b3c7260307a2ab630d0dc53ea0b932 |
|
MD5 | b36d4355a1366421cc5749923fbf4383 |
|
BLAKE2b-256 | 6503de5032d63c97fe4fed2dac782acb39797f8ce9e987b8f053d51df0e904e4 |