简单的工具
项目描述
版本:0.0.1
状态:开发
作者:黄思哲
描述
用于轻松创建异步脚本的工具。
关键词:工具,异步
特征
任务池
演员和演员经理
例子
async with AioFixedTaskPoolSimple() as task_pool:
print(f"test pool size {task_pool.size}")
print("test 4 task with pool size 3")
await asyncio.gather(
task_pool.submit(test, func_args=["c"]),
task_pool.submit(test, func_args=["b"]),
task_pool.submit(test, func_args=["a"]),
task_pool.submit(test, func_args=["d"])
)
class Pinger(AioActor):
async def receive(self, message):
print(message)
try:
await ActorManager.get_actor("Ponger").Send('ping')
except Exception as e:
print(f"receive run error {e}")
finally:
await asyncio.sleep(0.5)
安装
python -m pip install aio_parallel_tools
文档
更改日志
版本 0.0.1
创建了这个项目
项目详情
关
aio_parallel_tools -0.0.1.tar.gz 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | ba0e4dea069b32794cf33d07104e63d26dc454eb4736cf0a540c32c109eb65db |
|
| MD5 | 90a71d6f6ac17be2a9202168565b0adf |
|
| 布莱克2-256 | 5a3a4186a7da2ebe1bde75df01e5d67eadc250f9a28bd25f927420fe4d10f295 |
关
aio_parallel_tools -0.0.1-py3-none-any.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 98f63f56ad423efa84f49e2bd7da8ce974227f87683f3ede8c333437ce1082b1 |
|
| MD5 | e696f91e417594e69989eb2e2d53f814 |
|
| 布莱克2-256 | 793293d4c5461e4cb9c8f147c2936c32c392a29e920ef59eb4991c23db4f7fba |