rabbitmq-tutorials/python/README.md
2010-11-23 12:31:51 +00:00

974 B

Python code for RabbitMQ tutorials

Here you can find a Python code examples from RabbitMQ tutorials.

Dependencies

Before running the examples you need to install pika library. In order to do so run, on Ubuntu:

sudo apt-get install python-pip git-core
sudo pip install -e git+http://github.com/tonyg/pika.git#egg=pika

on Debian:

sudo apt-get install python-setuptools git-core
sudo easy_install pip
sudo pip install -e git+http://github.com/tonyg/pika.git#egg=pika

Code

Tutorial one: "Hello World!":

python send.py
python receive.py

Tutorial two: Work Queues:

python new_task.py
python worker.py

Tutorial three: Publish/Subscribe

python receive_logs.py
python emit_log.py