flask-lambda-python37
============================================================
**Python 3.7+ Only**
------------------------------------------------------------
For older versions of python use the original flask-lambda library which this code is adapted from:
https://github.com/sivel/flask-lambda
See this example flask project for how to use and deploy a flask app using this library:
https://github.com/techjacker/flask-lambda-example
Installation
------------
pip install flask-lambda-python37
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)
Raw data
{
"_id": null,
"home_page": "https://github.com/caprasadrajmane/flask-lambda",
"name": "flask-lambda-python37",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "flask aws amazon lambda",
"author": "Prasad Rajmane",
"author_email": "caprasadrajmane@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/4e/1c/06d6fbb9e618a880b2bb2e7a21986dda2be86a671e50e7891e516613cf7d/flask-lambda-python37-0.0.1.tar.gz",
"platform": null,
"description": "flask-lambda-python37\r\n============================================================\r\n\r\n**Python 3.7+ Only**\r\n------------------------------------------------------------\r\n\r\nFor older versions of python use the original flask-lambda library which this code is adapted from:\r\nhttps://github.com/sivel/flask-lambda\r\n\r\nSee this example flask project for how to use and deploy a flask app using this library:\r\nhttps://github.com/techjacker/flask-lambda-example\r\n\r\n\r\nInstallation\r\n------------\r\n\r\npip install flask-lambda-python37\r\n\r\n\r\nUsage\r\n-----\r\n\r\nHere is an example of what ``my_python_file.py`` would look like::\r\n\r\n from flask_lambda import FlaskLambda\r\n\r\n app = FlaskLambda(__name__)\r\n\r\n\r\n @app.route('/foo', methods=['GET', 'POST'])\r\n def foo():\r\n data = {\r\n 'form': request.form.copy(),\r\n 'args': request.args.copy(),\r\n 'json': request.json\r\n }\r\n return (\r\n json.dumps(data, indent=4, sort_keys=True),\r\n 200,\r\n {'Content-Type': 'application/json'}\r\n )\r\n\r\n\r\n if __name__ == '__main__':\r\n app.run(debug=True)\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "Apache License, Version 2.0",
"summary": "Python3.7+ module to make Flask compatible with AWS Lambda",
"version": "0.0.1",
"split_keywords": [
"flask",
"aws",
"amazon",
"lambda"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a0ca6e1ebf4c97d435240f07b42d86f53ddcafa2431c10daa27efe34ffbc1851",
"md5": "fea2d0e5a34b5ab15a9fcb6c6962daa7",
"sha256": "fae78ecb7cb42474e9161c826f922396774f58bf8612edcc3b81ffd4643eda16"
},
"downloads": -1,
"filename": "flask_lambda_python37-0.0.1-py36-none-any.whl",
"has_sig": false,
"md5_digest": "fea2d0e5a34b5ab15a9fcb6c6962daa7",
"packagetype": "bdist_wheel",
"python_version": "py36",
"requires_python": null,
"size": 7750,
"upload_time": "2023-02-08T12:49:38",
"upload_time_iso_8601": "2023-02-08T12:49:38.837973Z",
"url": "https://files.pythonhosted.org/packages/a0/ca/6e1ebf4c97d435240f07b42d86f53ddcafa2431c10daa27efe34ffbc1851/flask_lambda_python37-0.0.1-py36-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4e1c06d6fbb9e618a880b2bb2e7a21986dda2be86a671e50e7891e516613cf7d",
"md5": "97841151672e0b5e355ef2cf42454c4c",
"sha256": "ccd0790c88fc409588ba987dbc72ad86e6d73a9b8e5a3941c9bada078f93b38d"
},
"downloads": -1,
"filename": "flask-lambda-python37-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "97841151672e0b5e355ef2cf42454c4c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3284,
"upload_time": "2023-02-08T12:49:40",
"upload_time_iso_8601": "2023-02-08T12:49:40.827704Z",
"url": "https://files.pythonhosted.org/packages/4e/1c/06d6fbb9e618a880b2bb2e7a21986dda2be86a671e50e7891e516613cf7d/flask-lambda-python37-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-08 12:49:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "caprasadrajmane",
"github_project": "flask-lambda",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "Flask",
"specs": [
[
">=",
"0.10"
]
]
}
],
"lcname": "flask-lambda-python37"
}