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

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

Built distributions (wheels)

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

Total release size: 18.9 MB

Release files / uvloop-0.10.2.tar.gz

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

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

Download URL uvloop-0.10.2-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
927303f5280139d2d7ff844f1cb8fd075c61aeed19612bdebcc8614e7d1de461
BLAKE2b-256 checksum
How to use checksums
6f4b0cee34565a00374f3df7602898f7cc8508898498f94d234a7d9cfbed11d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL uvloop-0.10.2-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
4db78a001f0e5476f505479f11456c5bb91898d4364527185ef36542d9214321
BLAKE2b-256 checksum
How to use checksums
f8afbbace74751c1a4bed9ec23771c2d88524cb7be69970e7b060b9e60fc5949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL uvloop-0.10.2-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
5a9e0b8eb6dc7a043d21f3f612d2497d639481ad71503447cf36c2f579faa850
BLAKE2b-256 checksum
How to use checksums
342edd40c786231420deb9bc9ddb2ed1dbc66c88ffe229b6515c5735e230a965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL uvloop-0.10.2-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
db47ce5f467d8e471112a4c325417b3ec1e89253582defa664f4517069b151fa
BLAKE2b-256 checksum
How to use checksums
8b13e810cdd51bc4027499698cdf88783f9ce85d41ec2765652191033acfd95c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL uvloop-0.10.2-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
d248e93f99b43d58812abb579ea16b4382a282a2a5d010422b4af8e29105459d
BLAKE2b-256 checksum
How to use checksums
2b8c993db9a1575d2ea06f031ce771e5a1214a54687032eb74723ee0341686f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL uvloop-0.10.2-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
acf4cf13267a7b3a25d7c667f527abf98e0c9d10bd87d7260690acecfa86a2e5
BLAKE2b-256 checksum
How to use checksums
616c1d00866fabc7ad430a708f8ca8513e5f44c3305d4ecc922b24ac75a088fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for uvloop 0.10.2

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