{"id":20269583,"url":"https://github.com/omnilib/aioitertools","last_synced_at":"2025-12-11T21:03:28.895Z","repository":{"id":39181410,"uuid":"138766676","full_name":"omnilib/aioitertools","owner":"omnilib","description":"itertools and builtins for AsyncIO and mixed iterables","archived":false,"fork":false,"pushed_at":"2024-12-01T14:47:56.000Z","size":273,"stargazers_count":255,"open_issues_count":15,"forks_count":25,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-31T14:04:11.138Z","etag":null,"topics":["asyncio","hacktoberfest","itertools","python","python3"],"latest_commit_sha":null,"homepage":"https://aioitertools.omnilib.dev","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/omnilib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-26T16:49:46.000Z","updated_at":"2025-03-28T08:51:37.000Z","dependencies_parsed_at":"2024-03-24T22:21:09.012Z","dependency_job_id":"81eca081-a28a-4fa4-af24-9a6974940e9f","html_url":"https://github.com/omnilib/aioitertools","commit_stats":{"total_commits":211,"total_committers":19,"mean_commits":"11.105263157894736","dds":0.4597156398104265,"last_synced_commit":"f9349de48ec1560e294d99e551c64fc75d4c384e"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnilib%2Faioitertools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnilib%2Faioitertools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnilib%2Faioitertools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnilib%2Faioitertools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omnilib","download_url":"https://codeload.github.com/omnilib/aioitertools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271510,"owners_count":20911586,"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":["asyncio","hacktoberfest","itertools","python","python3"],"created_at":"2024-11-14T12:25:58.935Z","updated_at":"2025-12-11T21:03:28.888Z","avatar_url":"https://github.com/omnilib.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"aioitertools\n============\n\nImplementation of itertools, builtins, and more for AsyncIO and mixed-type iterables.\n\n[![documentation](https://readthedocs.org/projects/aioitertools/badge/?version=latest)](https://aioitertools.omnilib.dev)\n[![version](https://img.shields.io/pypi/v/aioitertools.svg)](https://pypi.org/project/aioitertools)\n[![changelog](https://img.shields.io/badge/change-log-blue)](https://aioitertools.omnilib.dev/en/latest/changelog.html)\n[![license](https://img.shields.io/pypi/l/aioitertools.svg)](https://github.com/omnilib/aioitertools/blob/main/LICENSE)\n\n\nInstall\n-------\n\naioitertools requires Python 3.9 or newer.\nYou can install it from PyPI:\n\n```sh\n$ pip install aioitertools\n```\n\nUsage\n-----\n\naioitertools shadows the standard library whenever possible to provide\nasynchronous version of the modules and functions you already know.  It's\nfully compatible with standard iterators and async iterators alike, giving\nyou one unified, familiar interface for interacting with iterable objects:\n\n```python\nfrom aioitertools import iter, next, map, zip\n\nsomething = iter(...)\nfirst_item = await next(something)\n\nasync for item in iter(something):\n    ...\n\n\nasync def fetch(url):\n    response = await aiohttp.request(...)\n    return response.json\n\nasync for value in map(fetch, MANY_URLS):\n    ...\n\n\nasync for a, b in zip(something, something_else):\n    ...\n```\n\n\naioitertools emulates the entire `itertools` module, offering the same\nfunction signatures, but as async generators.  All functions support\nstandard iterables and async iterables alike, and can take functions or\ncoroutines:\n\n```python\nfrom aioitertools import chain, islice\n\nasync def generator1(...):\n    yield ...\n\nasync def generator2(...):\n    yield ...\n\nasync for value in chain(generator1(), generator2()):\n    ...\n\nasync for value in islice(generator1(), 2, None, 2):\n    ...\n```\n\n\nSee [builtins.py][], [itertools.py][], and [more_itertools.py][] for full\ndocumentation of functions and abilities.\n\n\nLicense\n-------\n\naioitertools is copyright [Amethyst Reese](https://noswap.com), and licensed under\nthe MIT license.  I am providing code in this repository to you under an open\nsource license.  This is my personal repository; the license you receive to\nmy code is from me and not from my employer. See the `LICENSE` file for details.\n\n\n[builtins.py]: https://github.com/omnilib/aioitertools/blob/main/aioitertools/builtins.py\n[itertools.py]: https://github.com/omnilib/aioitertools/blob/main/aioitertools/itertools.py\n[more_itertools.py]: https://github.com/omnilib/aioitertools/blob/main/aioitertools/more_itertools.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnilib%2Faioitertools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomnilib%2Faioitertools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnilib%2Faioitertools/lists"}