asynchelper
Allows execution of unlimited number of asynchronous tasks while limiting the amount of active concurrent ones.
Usage
- There are only two functions (for now):
- asynchelper.TaskExecutor.map(task_generator: Iterable[callable], workers: Union(int, None) = 128)
task_generator can be any iterable which holds (or generates) coroutines.
workers is the maximum limit of active tasks concurrently. None for no limit.
This will keep pushing tasks in the iterable until it’s fully consumed.
- asynchelper.TaskExecutor.forever(task: callable, args: Iterable = [], workers: Union(int, None) = 128)
task is an async funtion to create a couroutine from
args is an iterable of arguments to pass to task
workers is the maximum limit of active tasks concurrently. None for no limit
This will keep pushing the task(*args), running them forever with a limit of workers active tasks at any moment.
asynchelper was written by Mario Nascimento.
Metadata
Release files for asynchelper 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| asynchelper-0.1.4.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asynchelper-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / asynchelper-0.1.4.tar.gz
| Download URL | asynchelper-0.1.4.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45b3e4999c66c5e8aaa2b0b0a6238d01d107b44989e431f4f4066ef1524b1392
|
|
BLAKE2b-256 checksum How to use checksums |
04917b4dc91d965b88f9ce85671180c128865987a49b54ed5bbb648174b1f0a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / asynchelper-0.1.4-py3-none-any.whl
| Download URL | asynchelper-0.1.4-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e41e996afacaf6b0443fdfe193b543e939e2052788ec3abace0113ca7c6d7860
|
|
BLAKE2b-256 checksum How to use checksums |
30b5cceea34c3958b8283de0db8917d21563cbc4a28c3e7f30c8d73acead68df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|