python-flask-celery-example:使用Celery的Flask Rest API-源码

上传者: 42134537 | 上传时间: 2021-06-08 18:16:03 | 文件大小: 12KB | 文件类型: ZIP
带有Celery的Python3 Flask Rest API示例 该项目是使用Flask-restful和celery执行异步任务的示例。 安装 注意:强烈建议将其安装到virtualenv中。 如果要安装软件包: pip install . 出于开发目的,您可以按照开发要求以可编辑模式安装软件包。 pip install -e . -r requirements-dev.txt 用法 要启动该应用程序,可以使用文件run.py: python run.py 此外,为了能够玩芹菜,您必须首先启动Redis,然后像这样启动芹菜工人: celery -A run.celery wor

文件下载

资源详情

[{"title":"( 25 个子文件 12KB ) python-flask-celery-example:使用Celery的Flask Rest API-源码","children":[{"title":"python-flask-celery-example-master","children":[{"title":"MANIFEST.in <span style='color:#111;'> 25B </span>","children":null,"spread":false},{"title":"AUTHORS <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"Dockerfile <span style='color:#111;'> 360B </span>","children":null,"spread":false},{"title":"requirements-dev.txt <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"run.py <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 34B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 148B </span>","children":null,"spread":false},{"title":"tox.ini <span style='color:#111;'> 186B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"utils.py <span style='color:#111;'> 320B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 25B </span>","children":null,"spread":false},{"title":"conftest.py <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"resources","children":[{"title":"test_responses.py <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 23B </span>","children":null,"spread":false},{"title":"test_async.py <span style='color:#111;'> 224B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"setup.cfg <span style='color:#111;'> 296B </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 850B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"api","children":[{"title":"config.py <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"factory.py <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 860B </span>","children":null,"spread":false},{"title":"resources","children":[{"title":"main.py <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 511B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"docker-compose.yml <span style='color:#111;'> 427B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 660B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明