uvloop
uvloop is a fast, drop-in replacement for Python's built-in asyncio event loop, implemented in Cython and built on top of libuv. The current version is 0.22.1, and it follows a regular release cadence with active maintenance.
Warnings
- breaking uvloop does not support Windows at the moment.
- breaking uvloop may not be compatible with Python versions beyond 3.13.
- gotcha uvloop may not handle closed connections gracefully in certain scenarios.
Install
-
pip install uvloop
Imports
- uvloop
import uvloop
Quickstart
import asyncio
import uvloop
async def main():
# Your asynchronous code here
pass
uvloop.run(main())