simpler and more convenient way of asynchronous invocation
Project description
# asyncall – 更加简单方便的异步调用方式
# 特性 1. 支持 python2 和 python3 2. 更加方便的异步调用方式 3. 支持惰性获取结果
# 用法 ` >>> import asyncio >>> import asyncall >>> async def demo(para): ... await asyncio.sleep(1) ... return para ... >>> paras = ['A', 'B', 'C'] >>> res = asyncall.task_map(paras, async_func=demo) >>> >>> res ['A', 'B', 'C'] ` 详见 tests/test_async.py
# 注意 1. python2 需要安装相关第三方库(requirements.txt)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asyncall-1.0.1.tar.gz
(7.9 kB
view details)
Built Distribution
File details
Details for the file asyncall-1.0.1.tar.gz
.
File metadata
- Download URL: asyncall-1.0.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67cdf26ac959ede3b263d3d180ad12916eef2109be4611d5f9349e7d9f9f84b4 |
|
MD5 | bae7919ff3baa51fa64e9fd147626569 |
|
BLAKE2b-256 | dd98a940a4aca2b91ac5f20dd08af08d0da6681190978fc8b95b9ea4d220fd9f |
File details
Details for the file asyncall-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: asyncall-1.0.1-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5031e01b7e9514fe5f14844b1dbc20bb6de5883e9a7e94e58ae1241bcf10167d |
|
MD5 | 98b9fae9413bf1b603ba83192296866d |
|
BLAKE2b-256 | 37215f0c0abca9ad418fcc58c3011711a9d8b3f0c20eeeb3cc73e0e28644da7b |