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
asyncversions of advantageous standard library helpers, such aszip,map,enumerate,functools.reduce,itertools.tee,itertools.groupbyand many others. - Safe handling of
asynciterators to ensure prompt cleanup, as well as various helpers to simplify safely using customasynciterators. - Small but powerful toolset to seamlessly integrate existing sync code
into
asyncprograms and libraries.
Check out the documentation to get started or take a look around.