This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Fast implementation of asyncio event loop on top of libuv

Project Description

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.

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

Alternatively, you can create an instance of the loop manually, using:

loop = uvloop.new_event_loop()
asyncio.set_event_loop(loop)

Development of uvloop

To build uvloop, you’ll need Cython and Python 3.5. The best way is to create a virtual env, so that you’ll have cython and python commands pointing to the correct tools.

  1. git clone --recursive git@github.com:MagicStack/uvloop.git
  2. cd uvloop
  3. make
  4. make test

License

uvloop is dual-licensed under MIT and Apache 2.0 licenses.

Release History

Release History

This version
History Node

0.8.0

History Node

0.7.2

History Node

0.7.1

History Node

0.7.0

History Node

0.6.8

History Node

0.6.7

History Node

0.6.6

History Node

0.6.5

History Node

0.6.1

History Node

0.6.0

History Node

0.5.5

History Node

0.5.4

History Node

0.5.3

History Node

0.5.2

History Node

0.5.1

History Node

0.5.0

History Node

0.4.34

History Node

0.4.33

History Node

0.4.32

History Node

0.4.31

History Node

0.4.30

History Node

0.4.29

History Node

0.4.28

History Node

0.4.27

History Node

0.4.26

History Node

0.4.25

History Node

0.4.24

History Node

0.4.23

History Node

0.4.22

History Node

0.4.21

History Node

0.4.20

History Node

0.4.19

History Node

0.4.18

History Node

0.4.17

History Node

0.4.16

History Node

0.4.15

History Node

0.4.14

History Node

0.4.13

History Node

0.4.12

History Node

0.4.11

History Node

0.4.10

History Node

0.4.9

History Node

0.4.8

History Node

0.4.7

History Node

0.4.6

History Node

0.4.5

History Node

0.4.4

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
uvloop-0.8.0-cp35-cp35m-macosx_10_11_x86_64.whl (1.2 MB) Copy SHA256 Checksum SHA256 cp35 Wheel Feb 9, 2017
uvloop-0.8.0-cp35-cp35m-manylinux1_i686.whl (2.7 MB) Copy SHA256 Checksum SHA256 cp35 Wheel Feb 9, 2017
uvloop-0.8.0-cp35-cp35m-manylinux1_x86_64.whl (2.9 MB) Copy SHA256 Checksum SHA256 cp35 Wheel Feb 9, 2017
uvloop-0.8.0-cp36-cp36m-macosx_10_11_x86_64.whl (1.2 MB) Copy SHA256 Checksum SHA256 cp36 Wheel Feb 9, 2017
uvloop-0.8.0-cp36-cp36m-manylinux1_i686.whl (2.8 MB) Copy SHA256 Checksum SHA256 cp36 Wheel Feb 9, 2017
uvloop-0.8.0-cp36-cp36m-manylinux1_x86_64.whl (3.0 MB) Copy SHA256 Checksum SHA256 cp36 Wheel Feb 9, 2017
uvloop-0.8.0.tar.gz (1.7 MB) Copy SHA256 Checksum SHA256 Source Feb 9, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting