Hacker GitHub

← All repos

python-trio/unasync

View on GitHub ↗ ★ 109 Python

The async transformation code.

4 mentions on Hacker News by 4 people: 0 stories, 4 comments · first 2021-03-19 · latest 2024-01-20

Mentions per year 4 mentions · busiest year 2021 (3)
20082026
  1. Nice! This is similar to the solution here: https://github.com/python-trio/unasync
  2. …awaitable causes all kinds of API design complexity, all the way up to the existence of tools like https://github.com/python-trio/unasync which can code-generate the non-async version of a library from the async version.
    comment by simonw · 2021-11-25 · in PHP 8.1.0
  3. …are looking at ways to solve this. I know urllib3, elasticsearch-py, and a few others use unasync ( https://github.com/python-trio/unasync ) to transform async code into sync code, leaving one codebase supporting both uses in different…
    comment by abrookins · 2021-11-05 · in Async Python is not faster (2020)
  4. …them out again. It's not beautiful, but as far as I can tell all the alternatives are worse. https://github.com/python-trio/unasync is the current production implementation of this approach.
    comment by geofft · 2021-03-19 · in Building a shared vision for Async Rust