--- id: asyncstdlib version: "3.14.0" license: unclear license_treatment: permissive maintenance: active --- # asyncstdlib — The missing async toolbox License: permissive · Maintenance: active · Downloads: 6.0M/mo ## 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 above — 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 pip install asyncstdlib uv add asyncstdlib poetry add asyncstdlib ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 6.0M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags async itertools, async enumerate zip map, async standard library helpers, async iterator utilities, async functools reduce, async context managers, async builtins, async-utilities, iterator-helpers [View on SkillFed](https://skillfed.io/packages/asyncstdlib) · [View on PyPI](https://pypi.org/project/asyncstdlib/)