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 pyramid_celery import Task

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

or decorator based:

``` python
from pyramid_celery import celery

@celery.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-0.1.tar.gz (3.8 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for pyramid_celery-0.1.tar.gz
Algorithm Hash digest
SHA256 133b4fff85a221ddb5d88ee0bf0a961bb82af45da04f4c897f35eda4b1e98dfe
MD5 baa97d10518394186a0f391da88efdec
BLAKE2b-256 3db0cec6c2162c390356d804f1bdab2609ed2e24fd43f404e217eada07725562

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