Skip to content

Latest commit

 

History

History
 
 

python

Python code for RabbitMQ tutorials

Here you can find Python code examples from RabbitMQ tutorials.

Requirements

To run this code you need pika library version 0.5.2 (newer versions may not work). To install it run

pip install -e git+http://github.com/pika/pika.git@v0.5.2#egg=pika-v0.5.2

or

easy_install pika==0.5.2

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