Skip to main content
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 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.11.0

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

Built distributions (wheels)

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

Total release size: 28.0 MB

Release files / uvloop-0.11.0.tar.gz

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

Release files / uvloop-0.11.0-cp37-cp37m-manylinux1_x86_64.whl

Download URL uvloop-0.11.0-cp37-cp37m-manylinux1_x86_64.whl
Size 3.7 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
5336c76cd5a984b3d614170fe7a90f8cbda69eae2d9b69f00439afad86841cfd
BLAKE2b-256 checksum
How to use checksums
e982e3ffdaa3aa271e4572c5aef84534765f1fd44c60f106acae240cb1df03ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / uvloop-0.11.0-cp37-cp37m-manylinux1_i686.whl

Download URL uvloop-0.11.0-cp37-cp37m-manylinux1_i686.whl
Size 3.5 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
a23ab4551f9e28fea66bebc1851e6834daa25ab708c3c86c3cbab0f93fb337cb
BLAKE2b-256 checksum
How to use checksums
3869cfed187153aaf6a9b0405701bf865d15f0f957c332865c63a33b557216cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / uvloop-0.11.0-cp37-cp37m-macosx_10_11_x86_64.whl

Download URL uvloop-0.11.0-cp37-cp37m-macosx_10_11_x86_64.whl
Size 1.6 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
66268d184b37b1b6952dfa912b46baee41f23b51235665c7c0c01871ee893db4
BLAKE2b-256 checksum
How to use checksums
645c610353aedb1e43caa764b3ed68c8015c41f11b73c1500cdb7a5f5582a0ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

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

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

Download URL uvloop-0.11.0-cp36-cp36m-manylinux1_i686.whl
Size 3.5 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-32
SHA-256 checksum
How to use checksums
d43830035386a5605e5ce385b75651170f2c821aa9ad7566794ac21814e4e367
BLAKE2b-256 checksum
How to use checksums
0d541a749d87e23561c536c2976e6f7dd89e33053206a0c5119620b020a5e628
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL uvloop-0.11.0-cp36-cp36m-macosx_10_11_x86_64.whl
Size 1.6 MB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
9803fe492b5776e2a3a256dc43f14e14627f549614c6d791acd5f1f599a33599
BLAKE2b-256 checksum
How to use checksums
76c875fcc8e36c48697d8787633da06d568367f4911ac20175538078242da5ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

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

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

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

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

Download URL uvloop-0.11.0-cp35-cp35m-macosx_10_11_x86_64.whl
Size 1.6 MB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
edfd7e24cf8b68d6d4228066251c91884bb142b4ed62e6189602f50c44240d90
BLAKE2b-256 checksum
How to use checksums
0895ab854f4579cceb3c2443ec5f50f9e8a2736e792b5b0e80cf9c0b5cb998dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for uvloop 0.11.0

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.11.0 This release

10 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