skip to navigation
skip to content

Not Logged In

pyramid_celery 1.2.1

Celery integration with pyramid

Latest Version: 1.3

Getting Started
=====================
Include pyramid_celery either by setting your includes in your .ini,
or by calling config.include('pyramid_celery').

``` python
    pyramid.includes = pyramid_celery
```

Now you can either use class based:

``` python
from celery.task import task
from celery.task import Task

@task
class AddTask(Task):
    def run(self, x, y):
        print x+y
```

or decorator based:

``` python
from celery.task import task

@task
def add(x, y):
    print x+y
```

Configuration
=====================
All standard celery configuration options will work. Check out http://ask.github.com/celery/configuration.html

Demo
=====================
To see it all in action check out pyramid_celery_demo, run rabbitmq-server and then do:

``` python
$ python setup.py develop
$ populate_pyramid_celery_demo ./development.ini
$ pserve ./development.ini
$ pceleryd ./development.ini
```
 
File Type Py Version Uploaded on Size
pyramid_celery-1.2.1.tar.gz (md5) Source 2012-07-24 4KB
  • Downloads (All Versions):
  • 36 downloads in the last day
  • 193 downloads in the last week
  • 896 downloads in the last month