Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

https://travis-ci.org/MagicStack/uvloop.svg?branch=master 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 in a blog post about it.

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.12.0rc1

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

Built distributions (wheels)

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

Total release size: 26.5 MB

Release files / uvloop-0.12.0rc1.tar.gz

Download URL uvloop-0.12.0rc1.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
ea97302d8fa9d7b6fb1dd079774edcc581ebd8561e5ea71e1fd95c803904d38a
BLAKE2b-256 checksum
How to use checksums
df15a7aad9401eacbb079ffab2f7fe6eaa40b556978a2f29bd7bebd698370b79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

Release files / uvloop-0.12.0rc1-cp37-cp37m-manylinux1_x86_64.whl

Download URL uvloop-0.12.0rc1-cp37-cp37m-manylinux1_x86_64.whl
Size 3.5 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
63b6d876f5b7c1f1e1a31b950bb6eabab9b2490c0ba6df06ecaa86c7dac2dbe6
BLAKE2b-256 checksum
How to use checksums
76ccb10694252dfa9643cbb344157de102b0f0350e3ea2daac4231417e116570
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

Release files / uvloop-0.12.0rc1-cp37-cp37m-manylinux1_i686.whl

Download URL uvloop-0.12.0rc1-cp37-cp37m-manylinux1_i686.whl
Size 3.3 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
85ce7aed6481f078c4157e7049bc02b13abdaa3f1adc814e234b6262fab3c808
BLAKE2b-256 checksum
How to use checksums
5f7090b4e72cb4872c49ff52857fae00d6951bbd2229c018d3a1934230e6126a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

Release files / uvloop-0.12.0rc1-cp37-cp37m-macosx_10_11_x86_64.whl

Download URL uvloop-0.12.0rc1-cp37-cp37m-macosx_10_11_x86_64.whl
Size 1.5 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
975a0b29dfd378493b8be47a0599ea9f284ca9e39b4532ab280beaf7cf50d00f
BLAKE2b-256 checksum
How to use checksums
e660761214b290e689e9e9deb0b22cc41c4f2b9be3f4e56e74fd2831c31d506a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

Release files / uvloop-0.12.0rc1-cp36-cp36m-manylinux1_x86_64.whl

Download URL uvloop-0.12.0rc1-cp36-cp36m-manylinux1_x86_64.whl
Size 3.5 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
0e4ed2bd0e207bc284c3dfe3aafc9e9c96184f78a0f4881f8d5f9ed82eb08ef4
BLAKE2b-256 checksum
How to use checksums
bcc1b9a4fcbe8420c5ac9c6545db6e10d34ae70d2c19133d42f45717bd7895ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

Release files / uvloop-0.12.0rc1-cp36-cp36m-manylinux1_i686.whl

Download URL uvloop-0.12.0rc1-cp36-cp36m-manylinux1_i686.whl
Size 3.3 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
145931364fa88c9be5e7960729678677ea8d205ceebff3fbf0751e3463907f10
BLAKE2b-256 checksum
How to use checksums
ac922ef703201d18bb7c523801bdfb7563e1c183842bcacf693a071880b4859e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

Release files / uvloop-0.12.0rc1-cp36-cp36m-macosx_10_11_x86_64.whl

Download URL uvloop-0.12.0rc1-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
dfe83e6bb90892b0c2440b8e425f83b31c9f23195dd189bd59b2fb3fb12a7080
BLAKE2b-256 checksum
How to use checksums
5a3efa00cf2ae70cb1ee830c4ac0593b661d9997f2d8281394f4f9133fe7b930
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

Release files / uvloop-0.12.0rc1-cp35-cp35m-manylinux1_x86_64.whl

Download URL uvloop-0.12.0rc1-cp35-cp35m-manylinux1_x86_64.whl
Size 3.4 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
347785a64715f5aa361e01d9414be78c61218fc96fe137d554831c555c3bfe15
BLAKE2b-256 checksum
How to use checksums
bccb9fbfde9a215bae666ff58882dce134c272bd57c605edfbedd50e07d25a10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

Release files / uvloop-0.12.0rc1-cp35-cp35m-manylinux1_i686.whl

Download URL uvloop-0.12.0rc1-cp35-cp35m-manylinux1_i686.whl
Size 3.2 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
85a63f5b485c756b0390800579b4f22cb3a279795bf52e7698942980fb993793
BLAKE2b-256 checksum
How to use checksums
d9dfd4e37ae8b626ff8f805c22f8a74a4cd485d1f35bb08d1240a674f15202dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

Release files / uvloop-0.12.0rc1-cp35-cp35m-macosx_10_11_x86_64.whl

Download URL uvloop-0.12.0rc1-cp35-cp35m-macosx_10_11_x86_64.whl
Size 1.4 MB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
40b11baef9d36d92a786ab87c59164df8ca49945b0eb6bfcbdd3985c86864d39
BLAKE2b-256 checksum
How to use checksums
eb09e1f8037a7eea883becf76a4d51e0883e883220119e352361510aa5c7011e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

Security for uvloop 0.12.0rc1

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