Skip to main content

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 Asynchronouse 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.

Includes an example package mcMandelbrot that generates Mandelbrot set images, row by row, demonstrating the power of asynchronous multi-core processing. An instance of ProcessQueue dispatches the computations for each row of pixels to workers running on separate Python processes. The color-mapped RGB results are collected as they come back and intelligently buffered for iterating in a proper sequence to a third-party PNG library that wouldn’t ordinarily play nice with Twisted.

Python 3 compatiblity is in the works, but not yet supported.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AsynQueue-0.9.4.tar.gz (131.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

AsynQueue-0.9.4-py2-none-any.whl (164.4 kB view details)

Uploaded Python 2

File details

Details for the file AsynQueue-0.9.4.tar.gz.

File metadata

  • Download URL: AsynQueue-0.9.4.tar.gz
  • Upload date:
  • Size: 131.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for AsynQueue-0.9.4.tar.gz
Algorithm Hash digest
SHA256 ab016369c9f1733836a9246834ca1ea48a200ef19f9ff99b9abe204dd40d3485
MD5 f18b66f58a71b55c65906e50ad29b9c0
BLAKE2b-256 a8c64558384b2584e25d0cb3fafbc9f1d6eb9dab2e2af844caabf1bf4fab0261

See more details on using hashes here.

File details

Details for the file AsynQueue-0.9.4-py2-none-any.whl.

File metadata

File hashes

Hashes for AsynQueue-0.9.4-py2-none-any.whl
Algorithm Hash digest
SHA256 8f5fdc7b02b962193b9066221e0d6555043d86d6dc6e0b93cd74662e57ed5f88
MD5 f6e8e72af26f02dfc5e2de67505b20ac
BLAKE2b-256 cb3dd2a2bf2c5e750550c2de1131b5b4d4087e4992994ac28bee82a35b8ae34d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page