Crochet: Use Twisted Anywhere!
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.
- Developed at devel:languages:python
-
3
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory/python-crochet && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
crochet-2.1.1.tar.gz | 0000063777 62.3 KB | |
python-crochet.changes | 0000004616 4.51 KB | |
python-crochet.spec | 0000001901 1.86 KB |
Revision 3 (latest revision is 4)
Dominique Leuenberger (dimstar_suse)
accepted
request 1098213
from
Dirk Mueller (dirkmueller)
(revision 3)
- update to 2.1.1: * It's possible to decorate ``async/await`` Twisted functions with ``@wait_for`` and ``@run_in_reactor`` * Added type hints, thanks to Merlin Davis. * Added formal support for Python 3.9. * Dropped the deprecated APIs ``@wait_for_reactor``, ``@in_reactor``, ``DeferredResult``, the ``wrapped_function`` attribute, and unlimited timeouts on ``EventualResult.wait()``. * Dropped support for Python 2.7 and 3.5.
Comments 0