This post serves as more of a tutorial to get a Hello World up and running while using Celery and MongoDB as the broker . Celery has great documentation but they are in snippets across multiple pages and nothing that shows a full working example of using Celery with MongoDB which might be helpful for new users .

Install All Required Packages

Packages related to Celery.

pip install celery
pip install -U celery-with-mongodb

Ensure that you have MongoDB installed and running. 10gen have great documentation to get you up and running with MongoDB in no time.

In this tutorial we will only use a single module for both the celery application and the tasks.

1. Create celeryconfig.py

Lets start by first creating a celeryconfig.py that will store configuration details that will be used to configure Celery to use MongoDb as the results backend and other settings.

I recently completed Computational Investing Part 1 which further tickled my curiosity. Before completing the course I had started to play around with a few ideas. To do any kind of analytics with finance relating to the stock market you require symbols.

Created a simple module that uses BeatifulSoup to parse the list of S & P 500 symbols from Wikipedia and nicely formats the data to be use programmatically an application.