Skip to content

tijmenNL/tornado-pyuv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Tornado IOLoop based on pyuv

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

tornado-pyuv requires pyuv >= 0.10.0 and Tornado >= 3.0.

pip install git+https://github.com/saghul/tornado-pyuv.git

NOTE: If you are using Tornado 2.4.x you need to use the 'tornado24' branch or the 0.2.x versions of tornado-pyuv.

Using it

In order to use tornado-pyuv, 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 tornado_pyuv import UVLoop
IOLoop.configure(UVLoop)

Testing

If you want to run the Tornado test suite using tornado_pyuv run the following command:

python -m tornado.test.runtests --ioloop='tornado_pyuv.UVLoop' --verbose

Author

Saúl Ibarra Corretgé <saghul@gmail.com>

License

tornado-pyuv uses the MIT license, check LICENSE file.

About

Tornado IOLoop implemented with pyuv

Resources

License

Stars

Watchers

Forks

Packages

No packages published