Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install kuyruk

How to install Kuyruk

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install kuyruk
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.23.1 Available View build log
0.22.3 Available View build log
 
Author
Lastest release
version 0.23.1 on Jan 9th, 2014
https://travis-ci.org/cenkalti/kuyruk.png https://coveralls.io/repos/cenkalti/kuyruk/badge.png?branch=master

Kuyruk is a simple and easy way of distributing tasks to run on servers.

It uses RabbitMQ as message broker and depends on Pika which is a pure-Python RabbitMQ client library.

How to install?

Kuyruk is available on PyPI.

System Message: ERROR/3 (<string>, line 22)

Unknown directive type "code-block".

.. code-block:: bash

   $ pip install kuyruk


How to run tests?

Normally you don't need this but it is easy. kuyruk/test directory contains files of both unit and integration tests. Make sure that RabbitMQ is running before running tests. Tests also run on Travis CI automatically on push.

System Message: ERROR/3 (<string>, line 36)

Unknown directive type "code-block".

.. code-block:: bash

   $ git clone git://github.com/cenkalti/kuyruk.git
   $ cd kuyruk
   $ pip install -r kuyruk/test/requirements.txt
   $ nosetests


How to define tasks?

Instantiate a Kuyruk object somewhere. Then just put a kuyruk.task decorator on top of your function that you want to run in background. After decorating, when you call the function it will send the task to default queue instead of running the function. Since Kuyruk does not support a result backend yet you should not be using the return value of the function.

System Message: ERROR/3 (<string>, line 54)

Unknown directive type "code-block".

.. code-block:: python

   from kuyruk import Kuyruk

   kuyruk = Kuyruk()

   @kuyruk.task
   def echo(message):
       print message

   # This will send a message to queue
   echo('Hello, Kuyruk.')


How to run the worker?

Running the worker command with no parameters is enough for processing the tasks in the default queue.

System Message: ERROR/3 (<string>, line 74)

Unknown directive type "code-block".

.. code-block:: bash

   $ kuyruk worker


Where is the documentation?

Here it is: http://kuyruk.readthedocs.org

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.