Skip to main content

Celery integration with pyramid

Project description

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
```

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

pyramid_celery-1.2.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file pyramid_celery-1.2.tar.gz.

File metadata

File hashes

Hashes for pyramid_celery-1.2.tar.gz
Algorithm Hash digest
SHA256 80c274c8894f4e7287a137182635da477d64a8d473dfe6b9e22a95bf695b60c1
MD5 bcb2ed27fbb384b5b2364af3c3d4d7dd
BLAKE2b-256 8fee1bc614f8a0e420ed8d25981bf2ee64cecb9b83579ee6c85cea70b2b5d706

See more details on using hashes here.

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