MagicStack/uvloop ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python package that works as a fast drop in replacement for the normal asyncio event loop.

I want it to let me run async Python code with much better performance, especially for networking and server style workloads, while still feeling like regular asyncio to use. It should expose a simple helper so I can do something like run my main async function with this faster loop, and it should also support the older style of switching the loop when needed. Make sure it works on Python 3.9 and newer, and keep it compatible with common asyncio patterns like servers, streams, and socket calls.

Please include clear install and usage instructions, a few simple examples, and tests so I can verify it works. If you need current build or dependency details, look up the latest docs online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab