skillfed

asyncstdlib

The missing async toolbox

asyncstdlib v3.14.0 6.0M downloads/30d#1,983 on PyPI381
Permissive license Active released

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 asyncstdlib

uv

uv add asyncstdlib

poetry

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 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

Development Status :: 5 - Production/StableFramework :: AsyncIOIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

async itertoolsasync enumerate zip mapasync standard library helpersasync iterator utilitiesasync functools reduceasync context managersasync builtins
async-utilitiesiterator-helpers

More Software Development packages