Skip to content
Tornado IOLoop implemented with pyuv
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
tornaduv
.gitignore
.travis.yml
LICENSE
MANIFEST.in
README.rst
requirements.txt
setup.py
tox.ini

README.rst

A Tornado IOLoop based on pyuv

Build status Downloads Latest Version License

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

Authors

Saúl Ibarra Corretgé <saghul@gmail.com> Marc Schlaich <marc.schlaich@gmail.com>

License

tornaduv uses the MIT license, check LICENSE file.

You can’t perform that action at this time.