asyncstdlib
The missing async toolbox
What it is and what it does
asyncstdlib re-implements familiar Python standard library functions—zip, map, enumerate, functools.reduce, itertools.tee, itertools.groupby, and others—to work with async iterables, callables, and context managers. It bridges the gap between synchronous utility functions and async code, letting you use the same patterns you know from standard Python but with async iterators.
The library is event-loop agnostic, working equally well with asyncio, trio, or any custom async loop. It handles the cleanup and safety concerns of async iteration automatically, and includes helpers for integrating existing synchronous code into async programs. With no runtime dependencies and a pure-Python wheel, it installs with minimal friction.
Use it for:
- Iterate over multiple async iterables in parallel using async zip, then enumerate or map over the results.
- Group async stream data by key using async groupby, similar to itertools.groupby but for async sources.
- Reduce an async iterable to a single value using async functools.reduce without manual loop boilerplate.
- Safely split an async iterator into multiple independent iterators using async itertools.tee.
- Wrap synchronous functions to work in async contexts using the library's sync-to-async integration helpers.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides async-compatible versions of Python standard library functions like zip, map, enumerate, and itertools operations, enabling seamless use of these utilities with async iterables and callables.
Yes. asyncstdlib fills a genuine gap: it lets you use familiar standard library patterns with async code without reinventing the wheel. No dependencies, permissive license, active maintenance, and production-stable status make it a low-risk addition to any async project. Install it if you work with async iterables and want to avoid writing boilerplate.
Install
asyncstdlib on PyPI
pip
pip install asyncstdlibuv
uv add asyncstdlibpoetry
poetry add asyncstdlibInstalling asyncstdlib
Before you install
Low friction: pure Python wheel with no runtime dependencies. Active maintenance with recent commits and a stable release history since 2019.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install asyncstdlib
import asyncstdlib
async def example():
async_iter = asyncstdlib.enumerate(some_async_iterable)
async for index, item in async_iter:
print(index, item)
Requires Python 3.8 or later; async/await syntax is mandatory.
Verify before relying
- Whether the package handles edge cases in async cleanup as thoroughly as claimed in the description.
- Performance characteristics compared to manual async iteration patterns in real-world workloads.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (~=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 147 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,014,943/month — #1,983 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: asyncstdlib-3.14.0-py3-none-any.whl
Keywords: async, enumerate, itertools, builtins, functools, contextlib
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
aioitertoolsProvides async-compatible versions of Python's…
permissive · top 1,000 on PyPI
asyncstdlib-fwProvides async-compatible versions of Python…
permissive · top 15,000 on PyPI
python-utilsA collection of fully-typed utility functions…
permissive · top 5,000 on PyPI
more-itertoolsProvides additional iterator utilities and…
permissive · top 1,000 on PyPI
lmzProvides convenience functions for mapping,…
copyleft · top 15,000 on PyPI
jaraco.itertoolsProvides additional iterator utilities and…
permissive · top 15,000 on PyPI
toolzToolz provides utility functions for…
permissive · top 1,000 on PyPI
aiostreamaiostream provides composable stream operators…
copyleft · top 5,000 on PyPI
cytoolzCython-accelerated implementation of the toolz…
permissive · top 5,000 on PyPI
pipePipe enables shell-like infix syntax for…
permissive · top 15,000 on PyPI