Twisted is a production-quality event-driven networking engine with built-in support for many protocols (HTTP, DNS, SSH, IMAP), and a large ecosystem of 3rd party libraries. Twisted works on both Python 2 and a subset of functionality is supported on Python 3.
Asyncio (also known as Tulip) is a new networking event loop implementation included with Python 3.4, whose core networking layer was modeled on Twisted APIs. Trollius is a backport of Asyncio to Python 2.
txtulip aims to allow using both Twisted and Tulip/Asyncio/Trollius in the same Python process by:
txtulip is licensed under the MIT open source license, and maintained by Itamar Turner-Trauring.
txtulip can be downloaded at https://pypi.python.org/pypi/txtulip
Bugs and feature requests shoudl be filed at https://github.com/itamarst/txtulip
This package is experimental; pull requests are welcome.
The vast majority of the Twisted test suite does pass on the new reactor. The remaining test failures are due to:
Using txtulip is easy. Before importing any Twisted code, install the txtulip reactor:
from txtulip.reactor import install install()
See examples/echoserv.py for an example.
On Python 2 (or once trial/twistd command line tools are ported to Python 3), you can also specify trial --reactor=tulip or twistd --reactor=tulip.
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|
|txtulip-0.1.0-py2.py3-none-any.whl (8.1 kB) Copy SHA256 Checksum SHA256||3.5||Wheel||May 26, 2016|
|txtulip-0.1.0.tar.gz (5.0 kB) Copy SHA256 Checksum SHA256||–||Source||May 26, 2016|