Skip to content

maxfischer2781/asyncstdlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

aa76c1d · Mar 9, 2025
Mar 9, 2025
Mar 9, 2025
Oct 21, 2024
Aug 1, 2024
Oct 15, 2024
Apr 30, 2023
Jan 15, 2024
Nov 20, 2019
Jan 3, 2024
Oct 21, 2024
Jul 18, 2021
Oct 21, 2024
Aug 1, 2024

Repository files navigation

asyncstdlib -- the missing async toolbox

Documentation Status Available on PyPI Available on Conda-Forge License Development Chat

The asyncstdlib library re-implements functions and classes of the Python standard library to make them compatible with async callables, iterables and context managers. It is fully agnostic to async event loops and seamlessly works with asyncio, third-party libraries such as trio, as well as any custom async event loop.

  • Full set of async versions of advantageous standard library helpers, such as zip, map, enumerate, functools.reduce, itertools.tee, itertools.groupby and many others.
  • Safe handling of async iterators to ensure prompt cleanup, as well as various helpers to simplify safely using custom async iterators.
  • Small but powerful toolset to seamlessly integrate existing sync code into async programs and libraries.

Check out the documentation to get started or take a look around.