freshcrate
Home > Frameworks > aioitertools

aioitertools

itertools and builtins for AsyncIO and mixed iterables

Description

aioitertools ============ Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables. [![documentation](https://readthedocs.org/projects/aioitertools/badge/?version=latest)](https://aioitertools.omnilib.dev) [![version](https://img.shields.io/pypi/v/aioitertools.svg)](https://pypi.org/project/aioitertools) [![changelog](https://img.shields.io/badge/change-log-blue)](https://aioitertools.omnilib.dev/en/latest/changelog.html) [![license](https://img.shields.io/pypi/l/aioitertools.svg)](https://github.com/omnilib/aioitertools/blob/main/LICENSE) Install ------- aioitertools requires Python 3.9 or newer. You can install it from PyPI: ```sh $ 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: ```python 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: ```python 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](https://noswap.com), 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. [builtins.py]: https://github.com/omnilib/aioitertools/blob/main/aioitertools/builtins.py [itertools.py]: https://github.com/omnilib/aioitertools/blob/main/aioitertools/itertools.py [more_itertools.py]: https://github.com/omnilib/aioitertools/blob/main/aioitertools/more_itertools.py

Release History

VersionChangesUrgencyDate
0.13.0Imported from PyPI (0.13.0)Low4/21/2026
v0.13.0Tag v0.13.0Low11/6/2025
v0.12.0Tag v0.12.0Low9/2/2024
v0.11.0Tag v0.11.0Low9/18/2022
v0.10.0Tag v0.10.0Low2/24/2022
v0.10.0b1Tag v0.10.0b1Low2/10/2022
v0.9.0Tag v0.9.0Low2/7/2022
v0.8.0Tag v0.8.0Low8/5/2021
v0.7.1Tag v0.7.1Low11/9/2020
v0.7.0Tag v0.7.0Low5/6/2020
v0.6.1Tag v0.6.1Low4/22/2020
v0.6.0Tag v0.6.0Low4/8/2020
v0.5.1Tag v0.5.1Low11/13/2019
v0.5.0Tag v0.5.0Low11/13/2019
v0.4.0Tag v0.4.0Low4/30/2019
v0.3.2Tag v0.3.2Low3/31/2019
v0.3.1Tag v0.3.1Low3/6/2019
v0.3.0Tag v0.3.0Low2/7/2019
v0.2.0Tag v0.2.0Low6/28/2018
v0.1.0Tag v0.1.0Low6/27/2018

Dependencies & License Audit

Loading dependencies...

Similar Packages

pre-commitA framework for managing and maintaining multi-language pre-commit hooks.v4.6.0
azure-core-tracing-opentelemetryMicrosoft Azure Azure Core OpenTelemetry plugin Library for Pythonazure-template_0.1.0b6187637
spdx-toolsSPDX parser and tools.0.8.5
lacesDjango components that know how to render themselves.0.1.2
django-tasksA backport of Django's built in Tasks framework0.12.0