974 B
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
python send.py
python receive.py
python new_task.py
python worker.py
Tutorial three: Publish/Subscribe
python receive_logs.py
python emit_log.py