{"id":16776274,"url":"https://github.com/darkarp/asynchelper","last_synced_at":"2025-07-14T02:32:05.466Z","repository":{"id":52988776,"uuid":"356558954","full_name":"darkarp/asynchelper","owner":"darkarp","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-10T21:31:01.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-03T14:44:42.204Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darkarp.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-10T11:20:52.000Z","updated_at":"2023-07-13T14:01:15.000Z","dependencies_parsed_at":"2022-08-28T12:13:41.848Z","dependency_job_id":null,"html_url":"https://github.com/darkarp/asynchelper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/darkarp/asynchelper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkarp%2Fasynchelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkarp%2Fasynchelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkarp%2Fasynchelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkarp%2Fasynchelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkarp","download_url":"https://codeload.github.com/darkarp/asynchelper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkarp%2Fasynchelper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264896995,"owners_count":23679984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T07:09:25.691Z","updated_at":"2025-07-14T02:32:05.152Z","avatar_url":"https://github.com/darkarp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"asynchelper\n===========\n\n.. image:: https://img.shields.io/pypi/v/asynchelper.svg\n    :target: https://pypi.python.org/pypi/asynchelper\n    :alt: Latest PyPI version\n\n\nAllows execution of unlimited number of asynchronous tasks while limiting the amount of active concurrent ones.\n\nUsage\n-----\n\nThere are only two functions (for now):  \n * `asynchelper.TaskExecutor.map(task_generator: Iterable[callable], workers: Union(int, None) = 128)`  \n    * `task_generator` can be any iterable which holds (or generates) coroutines. \n    *  `workers` is the maximum limit of active tasks concurrently. `None` for no limit.\n    * This will keep pushing tasks in the iterable until it's fully consumed.\n * `asynchelper.TaskExecutor.forever(task: callable, args: Iterable = [], workers: Union(int, None) = 128)`\n    * `task` is an async funtion to create a couroutine from\n    * `args` is an iterable of arguments to pass to `task`\n    * `workers` is the maximum limit of active tasks concurrently. `None` for no limit\n    * This will keep pushing the `task(*args)`, running them forever with a limit of `workers` active tasks at any moment.\n\n-------\n\n`asynchelper` was written by `Mario Nascimento \u003cmario@whitehathacking.tech\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkarp%2Fasynchelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkarp%2Fasynchelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkarp%2Fasynchelper/lists"}