4 ms·
While the design of Curio is quite interesting, it's may not be a good choice, not for technical reasons, but for logistical reasons: the chances it gets a wide
by BiteCode_dev 5y ago
While the design of Curio is quite interesting, it's may not be a good choice, not for technical reasons, but for logistical reasons: the chances it gets a wide adoption are slim to None.
And since we are stuck with colored functions in python, the choice of stack matters very much.
Now, if you want easier concurrency, and a solution to a lot of concurrency problems that curio solves, while still being compatible with asyncio, use anyio:
https://anyio.readthedocs.io/en/stable/ https://anyio.readthedocs.io/en/stable/
It's a layer that works on top of asyncio, so it's compatible with all of it. But it features the nursery concept from Trio, which makes async programming so much simpler and safer.
- heavyset_go 5y agoanyio is also compatible with asyncio and Trio, so you can use it with either library or paradigm.
- sandGorgon 5y agoUvloop/uvicorn - which is the production grade asgi server only works with asyncio. Hypercorn works with trio..but you lose a LOT of performance