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

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())

or, starting with uvloop 0.12:

import uvloop

uvloop.install()

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:

    $ 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.13.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.13.0rc1
File Size Uploaded Provenance Actions
uvloop-0.13.0rc1.tar.gz 2.0 MB Without provenance Details for uvloop-0.13.0rc1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for uvloop 0.13.0rc1
File Actions
uvloop-0.13.0rc1-cp37-cp37m-manylinux2010_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Details for uvloop-0.13.0rc1-cp37-cp37m-manylinux2010_x86_64.whl
uvloop-0.13.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.13.0rc1-cp37-cp37m-macosx_10_11_x86_64.whl
uvloop-0.13.0rc1-cp36-cp36m-manylinux2010_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 Details for uvloop-0.13.0rc1-cp36-cp36m-manylinux2010_x86_64.whl
uvloop-0.13.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.13.0rc1-cp36-cp36m-macosx_10_11_x86_64.whl
uvloop-0.13.0rc1-cp35-cp35m-manylinux2010_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.12+ x86-64 Details for uvloop-0.13.0rc1-cp35-cp35m-manylinux2010_x86_64.whl
uvloop-0.13.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.13.0rc1-cp35-cp35m-macosx_10_11_x86_64.whl

Total release size: 17.8 MB

Release files / uvloop-0.13.0rc1.tar.gz

Download URL uvloop-0.13.0rc1.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
52a227559e2284982e5f10b62f0498a191924ab53e27fdba6b243459b43ffae5
BLAKE2b-256 checksum
How to use checksums
df51d7eea863725bda3b3fa12e7c339ca74f1231eb4ff9ef10413b20052222af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

Release files / uvloop-0.13.0rc1-cp37-cp37m-manylinux2010_x86_64.whl

Download URL uvloop-0.13.0rc1-cp37-cp37m-manylinux2010_x86_64.whl
Size 3.8 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
99904cc445d510295094be6dbb8d1cbad6bc729f58643bf568fd617214afd504
BLAKE2b-256 checksum
How to use checksums
25d0b7279abd6fddd701d4ffa192c3bd5b8aef50ec6b01fac7913c9f9fd244a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

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

Download URL uvloop-0.13.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
681d2ab0c266498e7fc36df3e07001602cd4526ca2158c7a4532cf9eddaef583
BLAKE2b-256 checksum
How to use checksums
9aacbf8f47b253925e9b94c189bc532b54a3a45132a92686578da57b626b7423
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

Release files / uvloop-0.13.0rc1-cp36-cp36m-manylinux2010_x86_64.whl

Download URL uvloop-0.13.0rc1-cp36-cp36m-manylinux2010_x86_64.whl
Size 3.8 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
3674b1b2a3c91df385a335e41e31048a466574883b6a0a3ac1496509e8a0acd8
BLAKE2b-256 checksum
How to use checksums
65d7fda7a25945f27aa0ad5d03fd92bdd197c8e022d34585b9f92c7793c37f41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

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

Download URL uvloop-0.13.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
6104f8078c3a68163d3cfc8fadc7881b2e58a9c3a45e09b9487b45bd8678510c
BLAKE2b-256 checksum
How to use checksums
e26aa472d8e5903384ddf63318be5b0a93fee1fbf1d59b509cfedd5b92b79e93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

Release files / uvloop-0.13.0rc1-cp35-cp35m-manylinux2010_x86_64.whl

Download URL uvloop-0.13.0rc1-cp35-cp35m-manylinux2010_x86_64.whl
Size 3.8 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
ec4ecf0d2803dc3fa58d3efc05de5d50ab9a39b5203d9bca4f059ec3be22de87
BLAKE2b-256 checksum
How to use checksums
c190a0f78eaf1c63423f7f682f441d5d2aadd6ffefbb36c9148df1b5ed8f22b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

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

Download URL uvloop-0.13.0rc1-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
8108769060e20760503be305c805ab435aa404822475f64b064d1e1df9061e74
BLAKE2b-256 checksum
How to use checksums
c9bc1b887bf2628f2380d72368186ef3793fd0a17320f9461000875b76cf592c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

Security for uvloop 0.13.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