pyramid_celery

Celery integration with pyramid
Download

pyramid_celery Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • John Anderson
  • Publisher web site:
  • http://sontek.net

pyramid_celery Tags


pyramid_celery Description

pyramid_celery is a Python module that provides Celery integration with pyramid.Getting StartedInclude 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:``` pythonfrom pyramid_celery import Taskclass AddTask(Task): def run(self, x, y): print x+y```or decorator based:``` pythonfrom pyramid_celery import celery@celery.taskdef add(x, y): print x+y```ConfigurationAll standard celery configuration options will work. Check out http://ask.github.com/celery/configuration.htmlDemoTo 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```Product's homepage


pyramid_celery Related Software