Skip to main content

A package for creating task helpers.

Project description

Task helpers - a package for creating task helpers.

The library is under development. Classes, their location, description and behavior may change.

couriers module

The module allows you to work with tasks. The idea is that it would be possible to create a task and send it for execution / processing somewhere (to the worker), without waiting for the result to be executed in the same block of code. Or, for example, different clients (from different threads) can send many tasks for processing and each wait for its own result.

TaskCourier methods (parent & inherited classes):

Client side methods (ClientTaskCourier):

  • get_task_result - returns task retuls, if it exists;
  • wait_for_task_result - Waits for the task result to appear;
  • add_task_to_queue - adds a task to the queue for processing;

Worker side methods (WorkerTaskCourier):

  • get_tasks - pops tasks from queue and returns it;
  • get_task - returns one task from queue;
  • wait_for_task - waits for task and returns it;
  • return_task_result - returns result to the client side.

ClientWorkerTaskCourier:

  • all of the above

workers module

  • In developing

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

task_helpers-0.0.9.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

task_helpers-0.0.9-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

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