fennel:适用于Python和Redis的任务队列库

时间:2021-05-14 13:10:44
【文件属性】:
文件名称:fennel:适用于Python和Redis的任务队列库
文件大小:93KB
文件格式:ZIP
更新时间:2021-05-14 13:10:44
python redis task queue async 茴香 基于Redis Streams的Python 3.7+的任务队列,带有类似Celery的API。 注意:这是Alpha版本。 该项目正在开发中,可能会发生重大变化。 特征 支持同步(例如Django,Flask)和异步(例如Starlette,FastAPI)代码。 Sane默认值:处理语义至少一次,完成后确认任务。 自动重试,并具有指数退还功能,可用于即发即忘的工作。 清除可用的任务状态(例如,发送,执行,成功)。 自动任务发现(默认使用**/tasks.py )。 很小巧且易于理解的代码库。 安装 pip install fennel 基本用法 运行 ,然后在tasks.py执行代码: from fennel import App app = App ( name = 'myapp' , redis_url = 'redis://127.0.0.1' ) @ app
【文件预览】:
fennel-master
----poetry.lock(64KB)
----fennel()
--------client()
--------app.py(6KB)
--------worker()
--------models.py(1KB)
--------job.py(2KB)
--------utils.py(2KB)
--------cli.py(3KB)
--------keys.py(719B)
--------__main__.py(34B)
--------__init__.py(54B)
--------settings.py(5KB)
--------status.py(1011B)
--------logging.py(3KB)
--------exceptions.py(2KB)
----pyproject.toml(1KB)
----docs()
--------reference.rst(878B)
--------conf.py(2KB)
--------architecture.rst(8KB)
--------make.bat(795B)
--------installation.rst(106B)
--------guide.rst(9KB)
--------cli.rst(69B)
--------changelog.rst(861B)
--------motivation.rst(123B)
--------requirements.txt(2KB)
--------Makefile(634B)
--------index.rst(2KB)
----example.py(577B)
----.github()
--------workflows()
----tests()
--------conftest.py(2KB)
--------performance()
--------stress()
--------unit()
--------__init__.py(0B)
--------integration()
--------helpers()
----tox.ini(165B)
----LICENSE(1KB)
----setup.cfg(436B)
----.gitignore(2KB)
----Makefile(151B)
----README.md(2KB)

网友评论