aioitertools
Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables.
Install
aioitertools requires Python 3.9 or newer. You can install it from PyPI:
$ pip install aioitertools
Usage
aioitertools shadows the standard library whenever possible to provide asynchronous version of the modules and functions you already know. It's fully compatible with standard iterators and async iterators alike, giving you one unified, familiar interface for interacting with iterable objects:
from aioitertools import iter, next, map, zip
something = iter(...)
first_item = await next(something)
async for item in iter(something):
...
async def fetch(url):
response = await aiohttp.request(...)
return response.json
async for value in map(fetch, MANY_URLS):
...
async for a, b in zip(something, something_else):
...
aioitertools emulates the entire itertools module, offering the same
function signatures, but as async generators. All functions support
standard iterables and async iterables alike, and can take functions or
coroutines:
from aioitertools import chain, islice
async def generator1(...):
yield ...
async def generator2(...):
yield ...
async for value in chain(generator1(), generator2()):
...
async for value in islice(generator1(), 2, None, 2):
...
See builtins.py, itertools.py, and more_itertools.py for full documentation of functions and abilities.
License
aioitertools is copyright Amethyst Reese, and licensed under
the MIT license. I am providing code in this repository to you under an open
source license. This is my personal repository; the license you receive to
my code is from me and not from my employer. See the LICENSE file for details.
Release files for aioitertools 0.13.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 | |
|---|---|---|---|
| aioitertools-0.13.0.tar.gz | 19.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aioitertools-0.13.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 43.5 kB
Release files / aioitertools-0.13.0.tar.gz
| Download URL | aioitertools-0.13.0.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
620bd241acc0bbb9ec819f1ab215866871b4bbd1f73836a55f799200ee86950c
|
|
BLAKE2b-256 checksum How to use checksums |
fd3c53c4a17a05fb9ea2313ee1777ff53f5e001aefd5cc85aa2f4c2d982e1e38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Nov 6, 2025.
Transparency logRelease files / aioitertools-0.13.0-py3-none-any.whl
| Download URL | aioitertools-0.13.0-py3-none-any.whl |
|---|---|
| Size | 24.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0be0292b856f08dfac90e31f4739432f4cb6d7520ab9eb73e143f4f2fa5259be
|
|
BLAKE2b-256 checksum How to use checksums |
10a1510b0a7fadc6f43a6ce50152e69dbd86415240835868bb0bd9b5b88b1e06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Nov 6, 2025.
Transparency log