rabbitmq-tutorials/python-puka
Marek Majkowski eefd0bfeb6 cosmetic
2012-04-17 17:13:43 +01:00
..
emit_log_direct.py Puka: four and five 2011-07-06 15:44:10 +01:00
emit_log_topic.py Puka: four and five 2011-07-06 15:44:10 +01:00
emit_log.py Updated puka tutorial samples. 2011-07-06 13:51:53 +01:00
new_task.py Updated puka tutorial samples. 2011-07-06 13:51:53 +01:00
README.md cosmetic 2012-04-17 17:13:43 +01:00
receive_logs_direct.py Puka: four and five 2011-07-06 15:44:10 +01:00
receive_logs_topic.py Puka: four and five 2011-07-06 15:44:10 +01:00
receive_logs.py Updated puka tutorial samples. 2011-07-06 13:51:53 +01:00
receive.py Updated puka tutorial samples. 2011-07-06 13:51:53 +01:00
rpc_client.py puka: six. 2011-07-06 16:08:38 +01:00
rpc_server.py puka: six. 2011-07-06 16:08:38 +01:00
send.py Updated puka tutorial samples. 2011-07-06 13:51:53 +01:00
worker.py Updated puka tutorial samples. 2011-07-06 13:51:53 +01:00

Python-Puka code for RabbitMQ tutorials

Here you can find code examples from RabbitMQ tutorials adapted to Puka Python library.

Requirements

Now you can install puka using Pip:

  pip install puka

You may need to install pip first:

  • On Ubuntu:

    sudo apt-get install python-pip
    
  • On Debian:

    sudo apt-get install python-setuptools
    sudo 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