---
id: uvloop
version: "0.22.1"
license: MIT License
license_treatment: permissive
maintenance: active
---
# uvloop — Fast implementation of asyncio event loop on top of libuv
License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI
## Install
pip install uvloop
uv add uvloop
poetry add uvloop
## Description
.. image:: https://img.shields.io/github/actions/workflow/status/MagicStack/uvloop/tests.yml?branch=master
:target: https://github.com/MagicStack/uvloop/actions/workflows/tests.yml?query=branch%3Amaster
.. image:: https://img.shields.io/pypi/v/uvloop.svg
:target: https://pypi.python.org/pypi/uvloop
.. image:: https://pepy.tech/badge/uvloop
:target: https://pepy.tech/project/uvloop
:alt: PyPI - Downloads
uvloop is a fast, drop-in replacement of the built-in asyncio
event loop. uvloop is implemented in Cython and uses libuv
under the hood.
The project documentation can be found
`here `_. Please also check out the
`wiki `_.
Performance
-----------
uvloop makes asyncio 2-4x faster.
.. image:: https://raw.githubusercontent.com/MagicStack/uvloop/master/performance.png
:target: http://magic.io/blog/uvloop-blazing-fast-python-networking/
The above chart shows the performance of an echo server with different
message sizes. The *sockets* benchmark uses ``loop.sock_recv()`` and
``loop.sock_sendall()`` methods; the *streams* benchmark uses asyncio
high-level streams, created by the...
## AI interpretation — verify before relying
uvloop is a fast, drop-in replacement for Python's built-in asyncio event loop, implemented in Cython and using libuv under the hood to achieve 2-4x performance improvements for async I/O operations.
Verdict: uvloop is a production-stable, actively maintained asyncio accelerator with no known vulnerabilities, dual permissive licensing, and broad platform support. Medium install friction from compilation is offset by significant performance gains (2-4x) and top-1000 PyPI popularity, making it a well-vetted choice for performance-critical async applications.
[View on SkillFed](https://skillfed.io/packages/uvloop) · [View on PyPI](https://pypi.org/project/uvloop/)