skip to navigation
skip to content

Not Logged In

carotte 0.0.5

Carotte is a very lightweight Celery on zmq

Latest Version: 0.2.0

Carotte is a very lightweight Celery on zmq.

Install

pip install carotte

Getting started

Create your tasks.py:

from carotte import task

@task
def hello_world(name):
    return 'Hello %s!' % name

Run your worker (default on “tcp://127.0.0.1:5550”):

carotte --tasks-module tasks

Run your client:

>>> from carotte import Client
>>> client = Client()
>>> task = client.run_task('hello_world', ['foo'])
>>> task.success
>>> True
>>> task.result
>>> 'Hello foo!'
 
File Type Py Version Uploaded on Size
carotte-0.0.5.tar.gz (md5) Source 2014-04-02 6KB
  • Downloads (All Versions):
  • 7 downloads in the last day
  • 126 downloads in the last week
  • 140 downloads in the last month