Skip to main content

asynchelper

Latest PyPI version

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)

Source distribution for asynchelper 0.1.4
File Size Uploaded
asynchelper-0.1.4.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for asynchelper 0.1.4
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page