Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README.md
emit_log.py
emit_log_direct.py
emit_log_topic.py
new_task.py
receive.py
receive_logs.py
receive_logs_direct.py
receive_logs_topic.py
rpc_client.py
rpc_server.py
send.py
worker.py

README.md

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 git-core
    
  • 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
Something went wrong with that request. Please try again.