Tornado IOLoop implementation with pyuv
Project description
tornaduv is a Tornado IOLoop implementation which uses pyuv as the networking library instead of the builtin epoll and kqueue pollers included in Tornado.
pyuv is a Python interface for libuv, a high performance asynchronous networking library used as the platform layer for NodeJS.
Installation
tornaduv requires pyuv >= 1.0.0 and Tornado >= 3.0.
pip install git+https://github.com/saghul/tornaduv.git
NOTE: If you are using Tornado 2.4.x you need to use the ‘tornado24’ branch or the 0.2.x versions of tornaduv.
Using it
In order to use tornaduv, Tornado needs to be instructed to use our IOLoop. In order to do that add the following lines at the beginning of your project:
from tornado.ioloop import IOLoop from tornaduv import UVLoop IOLoop.configure(UVLoop)
Testing
If you want to run the Tornado test suite using tornaduv run the following command:
python -m tornado.test.runtests --ioloop='tornaduv.UVLoop' --verbose
License
tornaduv uses the MIT license, check LICENSE file.
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
File details
Details for the file tornaduv-0.4.0.tar.gz
.
File metadata
- Download URL: tornaduv-0.4.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb8518afac4a52892ed115434db96e24f63df8d07be1fb3f5bb81caaff0d5e0 |
|
MD5 | 5cf8bd6508e78df658365342e85dc775 |
|
BLAKE2b-256 | 5d84a479583e1b2c02ec6766c62cf2a1df942ac944745c1ff8ccd8ab2fa449c5 |