Skip to main content
https://travis-ci.org/MagicStack/uvloop.svg?branch=master https://ci.appveyor.com/api/projects/status/4apd79e5jqrwwe40/branch/master?svg=true https://img.shields.io/pypi/v/uvloop.svg

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.

performance.png

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 performance.

Installation

uvloop requires Python 3.5 or greater and is available on PyPI. Use pip to install it:

$ pip install uvloop

Using uvloop

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

import asyncio
import uvloop

asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())

Building From Source

To build uvloop, you’ll need Python 3.5 or greater:

  1. Clone the repository:

    $ git clone --recursive git@github.com:MagicStack/uvloop.git
    $ cd uvloop
  2. Create a virtual environment and activate it, for example:

    $ python3.7 -m venv uvloop-dev
    $ source uvloop-dev/bin/activate
  3. Install development dependencies:

    $ pip install -r requirements.dev.txt
  4. Build and run tests:

    $ make && make test

License

uvloop is dual-licensed under MIT and Apache 2.0 licenses.

Metadata

Release files for uvloop 0.10.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uvloop 0.10.1
File Size Uploaded Provenance Actions
uvloop-0.10.1.tar.gz 1.9 MB Without provenance Details for uvloop-0.10.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for uvloop 0.10.1
File Actions
uvloop-0.10.1-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details for uvloop-0.10.1-cp36-cp36m-manylinux1_x86_64.whl
uvloop-0.10.1-cp36-cp36m-manylinux1_i686.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-32 Details for uvloop-0.10.1-cp36-cp36m-manylinux1_i686.whl
uvloop-0.10.1-cp36-cp36m-macosx_10_11_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.11+ x86-64 Details for uvloop-0.10.1-cp36-cp36m-macosx_10_11_x86_64.whl
uvloop-0.10.1-cp35-cp35m-manylinux1_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 Details for uvloop-0.10.1-cp35-cp35m-manylinux1_x86_64.whl
uvloop-0.10.1-cp35-cp35m-manylinux1_i686.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-32 Details for uvloop-0.10.1-cp35-cp35m-manylinux1_i686.whl
uvloop-0.10.1-cp35-cp35m-macosx_10_11_x86_64.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.11+ x86-64 Details for uvloop-0.10.1-cp35-cp35m-macosx_10_11_x86_64.whl

Total release size: 18.8 MB

Release files / uvloop-0.10.1.tar.gz

Download URL uvloop-0.10.1.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
90f9d3ba56ddd554954feff381306ec7e8c31305fc8bf686277b7d8c46e09d68
BLAKE2b-256 checksum
How to use checksums
d450385f5dfd008508750a255ae742aaea6cc7f58877d9444b2d759543b0ee72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / uvloop-0.10.1-cp36-cp36m-manylinux1_x86_64.whl

Download URL uvloop-0.10.1-cp36-cp36m-manylinux1_x86_64.whl
Size 3.6 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
2d4aaae6e3b35416a82b52f7d41d7d366c8870627a923262e0654ab95e0a37da
BLAKE2b-256 checksum
How to use checksums
dc7f9b3fb733bcccb35a22f476ec01784cd37a90b2536c38e8d605a6bb91240a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / uvloop-0.10.1-cp36-cp36m-manylinux1_i686.whl

Download URL uvloop-0.10.1-cp36-cp36m-manylinux1_i686.whl
Size 3.4 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
3286e803eeb55413b4f1ef38f43a40340c490d3b7b1427ff2e50bacff7ee95a3
BLAKE2b-256 checksum
How to use checksums
74c86d8d002fb13e02288811276d30ab160067c3f73555e1acaa25bd11fe8d98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / uvloop-0.10.1-cp36-cp36m-macosx_10_11_x86_64.whl

Download URL uvloop-0.10.1-cp36-cp36m-macosx_10_11_x86_64.whl
Size 1.5 MB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
8b4c009b5cd8b2270bdccff288f6d162526bc80dc7fd142592f1761441ffc229
BLAKE2b-256 checksum
How to use checksums
c2fcbea04553f7fb73155ccf392d6208a9ba3b342d66588c10c3886c58b100b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / uvloop-0.10.1-cp35-cp35m-manylinux1_x86_64.whl

Download URL uvloop-0.10.1-cp35-cp35m-manylinux1_x86_64.whl
Size 3.5 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
5aade4aa1f5508ca1aa26cd01ebaf1d638d06c9a326f78755643c4bcafff17a7
BLAKE2b-256 checksum
How to use checksums
bcdaba48c882284f64903c0320a9515f42187bda5afc0d84cd7976b130677e68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / uvloop-0.10.1-cp35-cp35m-manylinux1_i686.whl

Download URL uvloop-0.10.1-cp35-cp35m-manylinux1_i686.whl
Size 3.3 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
f95fc54b281c87021ed931cdc18c6e5983bbd16b0369038354bef5210173d5f1
BLAKE2b-256 checksum
How to use checksums
e61cee3914b0fa06b4dff0a4d3fc488f5caddf0c8f56402c46009c4a9091ea45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / uvloop-0.10.1-cp35-cp35m-macosx_10_11_x86_64.whl

Download URL uvloop-0.10.1-cp35-cp35m-macosx_10_11_x86_64.whl
Size 1.5 MB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
6fbcd4f5515d4a07da471261e75d30b7a6af3025413edd1bf68e56835534d32e
BLAKE2b-256 checksum
How to use checksums
1e8da4ab0037075c494c434c23ed40674532dd22ccf897dbc632d17324a9f5d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for uvloop 0.10.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10.1 This release

7 release files No provenance

0.4.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page