You can buy the book here. You can read the book on O'Reilly OFPS now. Work the chapter code examples as you go. Don't forget to initialize your python environment. Try linux (apt-get, yum) or OS X (brew, port) packages if any of the requirements don't install in your virtualenv.
# From project root
# Setup python virtualenv
virtualenv -p `which python2.7` venv --distribute
source venv/bin/activate
pip install -r requirements.txt
pig -l /tmp -x local -param avros=<my_inbox_download_path> -param mongourl=mongodb://localhost/agile_data.emails -v -w avro_to_mongo.pig
mongo < list_emails.mongo.js
Or paste that file into the mongo shell.
To test the 'pymongo' module by listing emails, run:
python ./mongo_list.py
pig -l /tmp -x local -v -w ./elasticsearch.pig
Test pyelastic and the ElasticSearch query/sort APIs via:
python elasticsearch.py
Finally, run our Python/Flask web application.
python web/index.py