Skip to main content

Fast implementation of asyncio event loop on top of libuv

Project description

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.

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.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

uvloop-0.5.1.tar.gz (1.9 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

uvloop-0.5.1-cp35-cp35m-manylinux1_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.5m

uvloop-0.5.1-cp35-cp35m-manylinux1_i686.whl (2.4 MB view details)

Uploaded CPython 3.5m

uvloop-0.5.1-cp35-cp35m-macosx_10_11_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.5mmacOS 10.11+ x86-64

File details

Details for the file uvloop-0.5.1.tar.gz.

File metadata

  • Download URL: uvloop-0.5.1.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for uvloop-0.5.1.tar.gz
Algorithm Hash digest
SHA256 dca6364c5e74ab71cdb362d417f263cfe21c87f722ce21dc7f80b3541d4fd10a
MD5 f3776b1e1a9c3f91b095e1ecf92284af
BLAKE2b-256 7d6b096dc6a28655d8038ac6f0f212dffd2119ca7465226f1fd6ba2c902d35a2

See more details on using hashes here.

File details

Details for the file uvloop-0.5.1-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for uvloop-0.5.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 97e9ddaa67cfdce728d7c62c935f94b5df2d125c3c82809e5d5f7d484de6e9f5
MD5 c8dbe3570ad12957c1d110bc08f65a7a
BLAKE2b-256 050e22e185ce2686b30da4ad6da33ccfaee6b9c36e3d78765ee280bea5de502c

See more details on using hashes here.

File details

Details for the file uvloop-0.5.1-cp35-cp35m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for uvloop-0.5.1-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 0bfdcac9c9411d8666d146d73695f4a1a3232fb262bb68b87e3aabb4444a6d0f
MD5 c835f2ef3af424b6138ce137099d497e
BLAKE2b-256 0b74cb7d9baf634d03c9b154016c304cf807564a513b4addec9138993ae3f637

See more details on using hashes here.

File details

Details for the file uvloop-0.5.1-cp35-cp35m-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for uvloop-0.5.1-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 f3f773c08a7358e324c4df74f1db218715bdd8c41bad960ced68e93532627f14
MD5 52b9c335118ce82cee361b5371bb29ca
BLAKE2b-256 efb18b37dbe690dd2707663cac888921276d3e1b747fba71aab2bcd25f294f50

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page