Pythie
CategoriesTrending
An open index of Python tools.Pythie’s IndexLegal noticePrivacyData: PyPI (package metadata; download statistics under CC BY 4.0, via ClickHouse), deps.dev (CC BY 4.0), GitHub, OSV.

uvloop

0.23.0ActivePythie’s Index: 56

Fast implementation of asyncio event loop on top of libuv

Maintained. Last release 8 weeks ago, commits in 4 of the last 26 weeks. Weaker on commit activity and issue handling.

Async & ConcurrencyHTTP & Networking
$pip install uvloop
MagicStack/uvloopPyPI
.. 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 <http://uvloop.readthedocs.org/>`_. Please also check out the `wiki <https://github.com/MagicStack/uvloop/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 ``asyncio.start_server()`` function; and the *protocol* benchmark uses ``loop.create_server()`` with a simple echo protocol. Read more about uvloop in a `blog post <http://magic.io/blog/uvloop-blazing-fast-python-networking/>`_ about it. Installation ------------ uvloop requires Python 3.8 or greater and is available on PyPI. Use pip to install it:: $ pip install uvloop Note that it is highly recommended to **upgrade pip before** installing uvloop with:: $ pip install -U pip Using uvloop ------------ As of uvloop 0.18, the preferred way of using it is via the ``uvloop.run()`` helper function: .. code:: python import uvloop async def main(): # Main entry-point. ... uvloop.run(main()) ``uvloop.run()`` works by simply configuring ``asyncio.run()`` to use uvloop, passing all of the arguments to it, such as ``debug``, e.g. ``uvloop.run(main(), debug=True)``. With Python 3.11 and earlier the following alternative snippet can be used: .. code:: python import asyncio import sys import uvloop async def main(): # Main entry-point. ... if sys.version_info >= (3, 11): with asyncio.Runner(loop_factory=uvloop.new_event_loop) as runner: runner.run(main()) else: uvloop.install() asyncio.run(main()) Building From Source -------------------- To build uvloop, you'll need Python 3.8 or greater: 1. Clone the repository: .. code:: $ git clone --recursive git@github.com:MagicStack/uvloop.git $ cd uvloop 2. Create a virtual environment and activate it: .. code:: $ python3 -m venv uvloop-dev $ source uvloop-dev/bin/activate 3. Install development dependencies: .. code:: $ pip install -e .[dev] 4. Build and run tests: .. code:: $ make $ make test License ------- uvloop is dual-licensed under MIT and Apache 2.0 licenses.

Popularity

Downloads / month
298.8M
GitHub stars
12K
Downloads, last 7 days
66.2M-8%
Stars, last 7 days
–
Direct dependents
695
All dependents
14.4K

Pythie’s Index

How it works
56

Fair

Maintenance, out of 100

  • Recent release

    last release 59 days ago

  • Commit activity

    4/26 weeks with commits

  • Release cadence

    1 releases in 12 months

  • Issues & PRs handled

    40% closed in the past year

  • Contributor spread

    46 authors in last 100 commits

  • OpenSSF Scorecard

    5.0/10

Commits, last 26 weeks8

Releases

Latest
0.23.0
Released
Oct 1, 2026
Releases, 12 months
1
First release
Apr 12, 2016

Compatibility

Requires Python
>=3.8.1
Tested on
3.8 · 3.9 · 3.10 · 3.11 · 3.12 · 3.13
License
MIT (Permissive)

Keywords

asyncionetworkingasync-awaitasynchigh-performancelibuvpythonpython-3event-loopasync-python

Alternatives

Use instead of uvloop: tools that do the same job, closest first.

Compare with zuvloop →Compare with winloop →Compare with rsloop →Compare all 4 →

  • zuvloop0.0.22ActivePythie’s Index: 82

    A libuv event loop for asyncio, written in Zig.

    Async & ConcurrencyPerformance & Low-level106419.2K/moReleased Nov 24, 2026
  • winloop0.8.4ActivePythie’s Index: 84

    Windows version of uvloop

    Async & ConcurrencyHTTP & Networking237148.8K/moReleased Nov 20, 2026
  • rsloop0.1.70ActivePythie’s Index: 86

    An event loop for asyncio written in Rust

    Async & ConcurrencyPerformance & Low-level21066K/moReleased Nov 24, 2026

Works well with

Use together with uvloop: extensions, drivers, servers and companion tools.

  • aiohttpPythie’s Index: 83Async http client/server framework (asyncio)568.6M downloads/mo
  • uvicornPythie’s Index: 84The lightning-fast ASGI server.694.8M downloads/mo
  • anyioPythie’s Index: 88High-level concurrency and networking framework on top of asyncio or Trio1.1B downloads/mo
  • asyncsshPythie’s Index: 86AsyncSSH: Asynchronous SSHv2 client and server library17M downloads/mo
  • grpclibPythie’s Index: 30Pure-Python gRPC implementation for asyncio51.2M downloads/mo
  • asyncioPythie’s Index: 6Deprecated backport of asyncio; use the stdlib package instead6.7M downloads/mo