aiolibs-executor
Asyncio version of concurrent.futures executor.
Installaion
pip install aiolibs-executor
Usage
from aiolibs_executor import Executor
async def worker(arg):
return await do_stuff(arg)
async with Executor(num_workers=3) as executor:
futs = [await executor.submit(worker(i)) for i in range(10)]
for fut in futs:
print(await fut)
All submitted worker(i) coroutines are distributed to three concurrent streams,
awaiting returned functions provides a value returned by a coroutine.
TODO: Make comprehensive description of all public Executor's methods.
License
The library is published under Apache 2.0 license.
Release files for aiolibs-executor 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiolibs_executor-0.0.0.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiolibs_executor-0.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.8 kB
Release files / aiolibs_executor-0.0.0.tar.gz
| Download URL | aiolibs_executor-0.0.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
305d4dbf06006e1d4b1aad704bc4cbb71aad6c6cf4d93e83351e9e7e0bc45cf8
|
|
BLAKE2b-256 checksum How to use checksums |
a6b2ba769bcc2ef56260f932f765a9cc768c87435aaf202fdb5731ea237e1010
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 12, 2025.
Transparency logRelease files / aiolibs_executor-0.0.0-py3-none-any.whl
| Download URL | aiolibs_executor-0.0.0-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cdc3e31e1d96754007d28db07563a903caa5b2299cd968e430428f6cd97d8cbe
|
|
BLAKE2b-256 checksum How to use checksums |
6d7acd175ea8e8f2277709fa070372b7ca0dae039335e9f3911251b88ce7f673
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 12, 2025.
Transparency log