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
```
=====================
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
Release history Release notifications | RSS feed
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.1.tar.gz
(4.4 kB
view details)
File details
Details for the file pyramid_celery-1.2.1.tar.gz
.
File metadata
- Download URL: pyramid_celery-1.2.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c223505d76286c3ddc490d7464642afc0035ee570e903e33907a3fa4d58ca6a0 |
|
MD5 | 9720e6d78ab5683aa1c1b64119c0a56e |
|
BLAKE2b-256 | e5b18d887e87c0c36fc7231da3e730aedde162fb9362d6f2d46d7362f18cde2b |