Crochet is an MIT-licensed library that makes it easier for blocking or threaded applications like Flask or Django to use the Twisted networking framework. Crochet provides the following features:

 * Runs Twisted's reactor in a thread it manages.
 * The reactor shuts down automatically when the process' main thread
   finishes.
 * Hooks up Twisted's log system to the Python standard library logging
   framework. Unlike Twisted's built-in logging bridge, this includes
   support for blocking Handler instances.
 * A blocking API to eventual results (i.e. Deferred instances). This
   last feature can be used separately, so Crochet is also useful for
   normal Twisted applications that use threads.

You can download Crochet at: http://pypi.python.org/pypi/crochet

Documentation can be found at: http://crochet.readthedocs.org

Bugs and feature requests should be filed at the project page: https://github.com/itamarst/crochet

*What's New in 1.0.0*

**

Documentation:

 * Added section on use cases and alternatives. Thanks to Tobias
   Oberstein for the suggestion.

Bug fixes:

 * Twisted does not have to be pre-installed to run setup.py, thanks to
   Paul Weaver for bug report and Chris Scutcher for patch.
 * Importing Crochet does not have side-effects (installing reactor
   event) any more.
 * Blocking calls are interrupted earlier in the shutdown process, to
   reduce scope for deadlocks. Thanks to rmorehead for bug report.

*
*

_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to