flask-lambda-python37-0.0.1
توضیحات
Python3.7+ module to make Flask compatible with AWS Lambda
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | flask-lambda-python37-0.0.1 |
| نام | flask-lambda-python37 |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Prasad Rajmane |
| ایمیل نویسنده | caprasadrajmane@gmail.com |
| آدرس صفحه اصلی | https://github.com/caprasadrajmane/flask-lambda |
| آدرس اینترنتی | https://pypi.org/project/flask-lambda-python37/ |
| مجوز | Apache License, Version 2.0 |
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)
نیازمندی
| مقدار | نام |
|---|---|
| >=2.2.2 | Flask |
نحوه نصب
نصب پکیج whl flask-lambda-python37-0.0.1:
pip install flask-lambda-python37-0.0.1.whl
نصب پکیج tar.gz flask-lambda-python37-0.0.1:
pip install flask-lambda-python37-0.0.1.tar.gz