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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b5c067ef4065510bafc135a0a22a6a54e52a44dc41626ba72a030865c807551 |
|
MD5 | 301a43f09e8a5901d2ddcc117ea1012a |
|
BLAKE2b-256 | bb236acc1760e2b6914c835c12603591abd5b53b991aaceb1b3c51d4bf3dc596 |
Close
Hashes for flask_lambda_python36_lb-0.5.0-py36-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e790565b4a925cb470b55e49b843dc0a1fd60b823b0a60087797f82e6f362207 |
|
MD5 | 3b5d6fe06de1bd6fe4499af9218d7ad8 |
|
BLAKE2b-256 | a367184e373b48b6f5936e142f542ea74ca1e0873fdd241397f24670393dceb2 |