{"library":"duet","type":"library","category":null,"description":"Duet is a simple future-based async library for Python, version 0.2.9. It takes inspiration from the `trio` library's structured concurrency but primarily relies on the standard `concurrent.futures.Future` interface for parallelism, allowing `async/await` coroutines to interact with these futures. A distinctive feature of Duet is its re-entrancy, permitting multiple calls to `duet.run()` within a single asynchronous context, which can simplify the incremental refactoring of synchronous codebases to asynchronous ones. The library is actively maintained with a steady release cadence for bug fixes and minor improvements.","language":"python","status":"active","version":"0.2.9","tags":["async","concurrency","futures","structured-concurrency","event-loop"],"last_verified":"Sun May 24","install":[{"cmd":"pip install duet","imports":["from duet import run","from duet import AwaitableFuture"]}],"homepage":null,"github":"http://github.com/google/duet","docs":null,"changelog":null,"pypi":"https://pypi.org/project/duet/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.6,"avg_import_s":0.07,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/duet/compatibility"}}