Show HN: async-anywhere, a Python library for crossing between async/sync code
Category: library
Tags: python, async, concurrency, futures, executors, threading
Score: 7.5/10 (Innovation: 7, Technical: 9, Documentation: 8, Utility: 6)
async-anywhere is a Python library providing tools to bridge between async and sync code, including an EventLoopExecutor that runs async code on a dedicated thread and AwaitableFuture that can be awaited or blocked on from any thread or event loop. It addresses complex concurrency problems like fork-safety, cancellation, and deadlock prevention, making it valuable for integrating async libraries into sync applications.
Target audience: Python developers working with mixed async/sync codebases, backend developers integrating async libraries into sync applications, and maintainers of concurrency-heavy systems.
Repository: https://github.com/zbentley/async-anywhere · Python · MIT · 1 stars
View on Hacker News