User Guide

This section of the documentation provides information about how to use uvloop.


uvloop is available from PyPI. It requires Python 3.5.

Use pip to install it.

$ pip install uvloop

Using uvloop

To make asyncio use the event loop provided by uvloop, you install the uvloop event loop policy:

import asyncio
import uvloop

Alternatively, you can create an instance of the loop manually, using:

import asyncio
import uvloop
loop = uvloop.new_event_loop()