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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a1aba4a91ba5f7f649e75b5ce4de84795738df891952b013b349fad82bcf88b |
|
MD5 | 90b538e8821ac9921cac94e96d85daac |
|
BLAKE2b-256 | 8862a9099a3a97b51c885d7b1103f4a20896b1dfeac9f1dd0cecca8c5fe865ee |
Close
Hashes for flask_lambda_python36_lb-0.3.1-py36-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e598c614ccb982c9351f0bc993bb8e2088649d65d265ac42bec76ede303baedc |
|
MD5 | 39c7ce1d5de5fb9099f0c593e06f77a7 |
|
BLAKE2b-256 | 5b18604ff9fd43a5499e824f66da022da900035f1500938373cbe53278857fd2 |