Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Experimental port of the Tulip project (asyncio module, PEP 3156) on Python 2.7

Project Description

Trollius is an experimental port of the Tulip project (asyncio module, PEP 3156) on Python 2.7.


The futures project is needed on Python 2 to get a backport of concurrent.futures.

The concurrent.futures is optional, it is only required when BaseEventLoop.run_in_executor() is used. This method is used by BaseEventLoop.getaddrinfo() and BaseEventLoop.getnameinfo().

Unit tests require the mock module:

Differences between Trollius and Tulip

  • Python 2 has no keyword-only parameters
  • Trollius coroutines use yield whereas Tulip coroutines must use yield-from
  • Trollius coroutines must use “raise Return(value)”, whereas Tulip simply uses “return value” thanks to Python 3.3 improvments
  • If the concurrent.futures module is missing, BaseEventLoop.run_in_executor() raises NotImplementedError and asyncio.wrap_future() is not available


The actual code lives in the ‘asyncio’ subdirectory. Tests are in the ‘tests’ subdirectory.

To run tests:
  • make test
To run coverage (coverage package is required):
  • make coverage

On Windows, things are a little more complicated. Assume ‘P’ is your Python binary (for example C:Python33python.exe).

You must first build the _overlapped.pyd extension and have it placed in the asyncio directory, as follows:

C> P build_ext –inplace

Then you can run the tests as follows:

C> P

And coverage as follows:

C> P –coverage

–Guido van Rossum <>

Trollius name

Extract of :

Trollius is a genus of about 30 species of plants in the family Ranunculaceae, closely related to Ranunculus. The common name of some species is globeflower or globe flower. Native to the cool temperate regions of the Northern Hemisphere, with the greatest diversity of species in Asia, trollius usually grow in heavy, wet clay soils.

Change log

2014-01-04: version 0.1

  • First public release
Release History

Release History

History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


This version
History Node


Download Files

Download Files

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
trollius-0.1.tar.gz (133.8 kB) Copy SHA256 Checksum SHA256 Source Jan 4, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting