Corotwine is a coroutine-based API that uses Twisted as its event loop.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Corotwine is an interface to various Twisted APIs using greenlet.

The latest release is available at The release notes are available at


I never really did much on this library after I designed and implemented it during a weekend in March of 2008. I have no idea if it still works. However, I will accept pull requests if they are tested and documented. Please contact me if you want to take on maintenance.



There are examples in corotwine/

There is API documentation at

Currently there are three interesting systems:

  • Protocol support at corotwine.protocol. Write TCP servers and clients.
  • Deferred support at corotwine.defer. Integrate with Deferred-using code in both directions.
  • Time support at corotwine.clock.


If you'd like to make contributions, please make sure they're unit-tested and documented, and submit a Pull Request.