rabbitmq-tutorials/python
2011-04-14 11:44:56 +01:00
..
emit_log_direct.py Python examples updated to recent pika 2011-03-14 17:30:12 +00:00
emit_log_topic.py Python examples updated to recent pika 2011-03-14 17:30:12 +00:00
emit_log.py Python examples updated to recent pika 2011-03-14 17:30:12 +00:00
new_task.py Python examples updated to recent pika 2011-03-14 17:30:12 +00:00
README.md easy_install pip, as easy_install pika==0.9.5 fails 2011-04-12 20:08:54 +01:00
receive_logs_direct.py Python examples updated to recent pika 2011-03-14 17:30:12 +00:00
receive_logs_topic.py Python examples updated to recent pika 2011-03-14 17:30:12 +00:00
receive_logs.py Python examples updated to recent pika 2011-03-14 17:30:12 +00:00
receive.py Python examples updated to recent pika 2011-03-14 17:30:12 +00:00
rpc_client.py FibonacciRpcClient class name 2011-04-07 13:02:25 +01:00
rpc_server.py restored fib function to original version that does not guard against negative numbers 2011-04-14 11:44:56 +01:00
send.py Python examples updated to recent pika 2011-03-14 17:30:12 +00:00
worker.py Python tutorials updated to pika 0.9.5 2011-03-29 14:27:35 +01: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.9.5. To install it run

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

You may first need to run

easy_install pip

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

Tutorial four: Routing

python receive_logs_direct.py
python emit_log_direct.py

Tutorial five: Topics

python receive_logs_topic.py
python emit_log_topic.py

Tutorial six: RPC

python rpc_server.py
python rpc_client.py