Skip to main content

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/

# 注意 1. python2 需要安装相关第三方库(requirements.txt)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for asyncall, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size asyncall-1.0.1-py3-none-any.whl (9.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size asyncall-1.0.1.tar.gz (7.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page