Python3.6+ module to make Flask compatible with AWS Gateway and AWS Load Balancer
Project description
Python 3.6+ Only
Installation
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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e38c0ed894df3acf9bd7ad86a1848b0ceca99db025fb82e19e4f3c4c6d94c021 |
|
MD5 | f446a65e5d9359af8372169f1918f64c |
|
BLAKE2b-256 | 34926364b820b824a3bf013002950948cfdf5c80b188a7ffa82b7903c9ba17de |
Close
Hashes for flask_lambda_python36_lb-0.2.0-py36-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d148f6af6ea697401dd2f8cf42a7d07f19b0c69e2effdbf1efcd8d57a549c2e0 |
|
MD5 | 234d21a3351e67d04c53ed614ca7e905 |
|
BLAKE2b-256 | e7726f095bdf80c5d495bbbde77bf3bf5065f622dbfdca7e7016a4cd9b48de97 |