Overview of asyncstdlib
masterasyncstdlib is a toolbox that provides asynchronous re-implementations of Python standard library functions and classes. It is designed to make standard library helpers compatible with async callables, iterables, and context managers.
Key features include:
- Async versions of standard helpers: Provides asynchronous equivalents for functions like
zip,map,enumerate,functools.reduce,itertools.tee, anditertools.groupby. - Safe async iterator handling: Includes helpers to ensure prompt cleanup and simplify the use of custom asynchronous iterators.
- Sync-to-Async integration: Provides tools to integrate existing synchronous code into asynchronous programs and libraries.
- Event loop agnostic: Works seamlessly with
asyncio,trio, or any custom asynchronous event loop.