Asynchronous task queueing with Twisted: threaded, multicore, and remote.
Project description
Asynchronous task queueing based on the Twisted framework, with task prioritization and a powerful worker interface. Worker implementations are included for running tasks asynchronously in the main thread, in separate threads, in separate Python interpreters (multiprocessing), and even on separate devices using Twisted's Asynchronous Message Protocol.
Includes deferred iteration capability: Calling a task that returns an iterator can return a Deferator instead, which does the iteration in a Twisted-friendly fashion, even over a network connection. You can also supply an object conforming to Twisted's IConsumer interface and iterations will be fed to it as they become available.
The util module contains a DeferredTracker object that makes the import worthwhile all on its own. You can use its put method to track Twisted Deferred objects without inserting anything into their callback chains. Then you can wait in non-blocking Twisted fashion for all, any, or some of the tracked deferreds to fire (again, without getting tangled up with any of their callbacks) using the tracker's deferToAll, deferToAny, and deferUntilFewer methods.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file asynqueue-0.9.9.tar.gz.
File metadata
- Download URL: asynqueue-0.9.9.tar.gz
- Upload date:
- Size: 85.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eca5cf212704c4378ced14d3d154658ba22ef7bc63e81a3d7d0fcceec454468
|
|
| MD5 |
93ac228522601a83922eaa614bff561e
|
|
| BLAKE2b-256 |
43a4ebb8fd7feb0222bf71cf420b9e6acbd30a26c2e8645258cc52e0381f19f0
|
File details
Details for the file asynqueue-0.9.9-py2.py3-none-any.whl.
File metadata
- Download URL: asynqueue-0.9.9-py2.py3-none-any.whl
- Upload date:
- Size: 108.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5985331f721f30293ebb81e92110ee5364067221a0ac0d2a68b726a442ac55f2
|
|
| MD5 |
b3023a4ef598135802bae3280e5fffba
|
|
| BLAKE2b-256 |
12fed35251843ef5df9ac4adfb4837492581eafbb822776612c2e9267155df7f
|