rabbitmq-tutorials/python
2011-04-07 13:04:23 +01:00
..
emit_log_direct.py use exclusive instead of auto-delete for #4 2010-12-13 15:42:37 +00:00
emit_log_topic.py header --> properties 2011-01-18 12:45:34 +00:00
emit_log.py Always use 'localhost', avoid setting username and password. 2010-12-13 13:34:15 +00:00
new_task.py Always use 'localhost', avoid setting username and password. 2010-12-13 13:34:15 +00:00
README.md Renamed pika location 2011-03-22 15:52:03 +00:00
receive_logs_direct.py header --> properties 2011-01-18 12:45:34 +00:00
receive_logs_topic.py header --> properties 2011-01-18 12:45:34 +00:00
receive_logs.py header --> properties 2011-01-18 12:45:34 +00:00
receive.py header --> properties 2011-01-18 12:45:34 +00:00
rpc_client.py FibonacciRpcClient class name 2011-04-07 13:04:23 +01:00
rpc_server.py Added whitespace 2010-12-14 15:30:53 +00:00
send.py Always use 'localhost', avoid setting username and password. 2010-12-13 13:34:15 +00:00
worker.py header --> properties 2011-01-18 12:45:34 +00:00

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