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

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.3
File Size Uploaded Provenance Actions
uvloop-0.10.3.tar.gz 1.9 MB Without provenance Details for uvloop-0.10.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for uvloop 0.10.3
File Actions
uvloop-0.10.3-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details for uvloop-0.10.3-cp36-cp36m-manylinux1_x86_64.whl
uvloop-0.10.3-cp36-cp36m-manylinux1_i686.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-32 Details for uvloop-0.10.3-cp36-cp36m-manylinux1_i686.whl
uvloop-0.10.3-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.3-cp36-cp36m-macosx_10_11_x86_64.whl
uvloop-0.10.3-cp35-cp35m-manylinux1_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 Details for uvloop-0.10.3-cp35-cp35m-manylinux1_x86_64.whl
uvloop-0.10.3-cp35-cp35m-manylinux1_i686.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-32 Details for uvloop-0.10.3-cp35-cp35m-manylinux1_i686.whl
uvloop-0.10.3-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.3-cp35-cp35m-macosx_10_11_x86_64.whl

Total release size: 18.9 MB

Release files / uvloop-0.10.3.tar.gz

Download URL uvloop-0.10.3.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
0cd8b104f962f9ba01f3a64bfb1c941fdb99819fd60a8b8949244e651eec007a
BLAKE2b-256 checksum
How to use checksums
69c65a6967f9718b60732dd41b3bea02b2b7d3ebfa40281eee0d8d5437b530c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.5

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

Download URL uvloop-0.10.3-cp36-cp36m-manylinux1_x86_64.whl
Size 3.7 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
d3d8abaff516a3819f7cf78c4be7a6c2107eebf6fe4205199a14565646378275
BLAKE2b-256 checksum
How to use checksums
713d9a96ef3fe5e59ad1d76ecde0eea62bf88d4792b19e6fa60d904f2ecbec22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.5

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

Download URL uvloop-0.10.3-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
5907e81d1ecc36797ceea91946194c63190ad8ffcf6256729dcfbf9f6c4b3b48
BLAKE2b-256 checksum
How to use checksums
52d24c5cac8960b095c37ad087dc71f928dcd63a52a94612998759455896459c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.5

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

Download URL uvloop-0.10.3-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
15f846f7c348447aa860651a4fc22e3a039c53bef5f3b41874e5c11fb173489b
BLAKE2b-256 checksum
How to use checksums
3a0ce4d62c9ec22ca8492f34ca43ed8dae9968221b70cea9832bce948b761252
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.5

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

Download URL uvloop-0.10.3-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
ab66001acfa1ac59728d5a33a356737c0d38d570eae3f667894d587cd12607a0
BLAKE2b-256 checksum
How to use checksums
39629f99bce409c1408c74702c2a93d224c058a0ecaf3925129e682d767e45ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.5

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

Download URL uvloop-0.10.3-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
8c1358a62a5282ccb7b14a24cfd49b0712f08ac1c54bdfb85d4ad34df09212b2
BLAKE2b-256 checksum
How to use checksums
c43f9001b29ab5fd393ab14c35b00ba05fa6722c3695ab60d232ddda3f57b897
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.5

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

Download URL uvloop-0.10.3-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
de46dbbf04fc23130a8110fde4e351770e66c184901881205c2970162a80d398
BLAKE2b-256 checksum
How to use checksums
4205332840970464b75893e114ccc91c436f8ad7c0fb0c453627ec1a7a7b352e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.5

Security for uvloop 0.10.3

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