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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f370fb5ae26e0d9e9875198e3bea05d20869c315f96d6f1432ed4d0f33f83053 |
|
MD5 | 2f75add52612938608bf2ec53494aa1d |
|
BLAKE2b-256 | 0d3b31b56c2c30024fa3c4413249412064dc0b9e31cc951c1c14abef011a28e9 |
Close
Hashes for flask_lambda_python36_lb-0.3.3-py36-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58879588bbe7e0423ca13f46639573b7c6d88de180cbb6f06abadc69c8a0b957 |
|
MD5 | 4ee00f5fcf1071163c9e106f20fc37c5 |
|
BLAKE2b-256 | 556c619611b97b8e0964885a9ba92abcfd74330109d6d445a3bb7af8523465c1 |