aiotools:惯用异步工具

时间:2021-05-03 03:16:33
【文件属性】:
文件名称:aiotools:惯用异步工具
文件大小:57KB
文件格式:ZIP
更新时间:2021-05-03 03:16:33
python library utils asyncio Python 电动工具 惯用异步工具 注意:此项目处于开发的早期阶段。 公用API可能会逐个版本破坏。 模组 我还建议您尝试以下asyncio库,以度过更幸福的生活。 :提供不产生子任务的轻量级超时包装器。 :为异步任务提供并发限制的调度程序,并具有正常关闭功能。 :用于Python的异步IO堆栈的另一种实现,着重于取消范围和称为“护理”的任务组。 例子 异步上下文管理器 这是contextlib.contextmanager的异步版本, contextlib.contextmanager编写异步上下文管理器的过程,而无需创建样板类。 import asyncio import aiotools @ aiotools . actxmgr async def mygen ( a ): await asyncio . sleep ( 1 ) yield a + 1 aw
【文件预览】:
aiotools-main
----setup.py(38B)
----.gitignore(1KB)
----LICENSE-EXTRA(169B)
----codecov.yml(210B)
----.readthedocs.yml(154B)
----pyproject.toml(869B)
----src()
--------aiotools()
----changes()
--------template.md(916B)
----MANIFEST.in(122B)
----LICENSE(1KB)
----setup.cfg(2KB)
----.github()
--------workflows()
----examples()
--------socketserver.py(826B)
--------locking.py(727B)
--------ticktock.py(374B)
--------zmqclient.py(203B)
--------zmqserver.py(2KB)
--------contextgroup.py(443B)
----README.md(6KB)
----tests()
--------conftest.py(0B)
--------test_func.py(3KB)
--------test_server.py(10KB)
--------test_context.py(17KB)
--------test_fork.py(3KB)
--------test_timer.py(4KB)
--------test_iter.py(2KB)
--------test_defer.py(3KB)
--------test_taskgroup.py(7KB)
----CONTRIBUTORS.txt(70B)
----CHANGES.md(7KB)
----requirements()
--------main.txt(5B)
--------dev.txt(41B)
--------test.txt(11B)
--------typecheck.txt(21B)
--------docs.txt(17B)
--------lint.txt(11B)
----docs()
--------Makefile(608B)
--------index.rst(598B)
--------conf.py(6KB)
--------_static()
--------make.bat(806B)
--------aiotools.func.rst(192B)
--------aiotools.taskgroup.rst(92B)
--------aiotools.iter.rst(97B)
--------aiotools.defer.rst(208B)
--------aiotools.fork.rst(292B)
--------aiotools.context.rst(978B)
--------aiotools.server.rst(109B)
--------aiotools.timer.rst(80B)
----.editorconfig(197B)

网友评论