rabbitmq-tutorials/python-puka
2010-11-30 16:40:59 +00:00
..
new_task.py Puka examples for first two tutorials. 2010-11-30 16:40:59 +00:00
README.md Puka examples for first two tutorials. 2010-11-30 16:40:59 +00:00
receive.py Puka examples for first two tutorials. 2010-11-30 16:40:59 +00:00
send.py Puka examples for first two tutorials. 2010-11-30 16:40:59 +00:00
worker.py Puka examples for first two tutorials. 2010-11-30 16:40:59 +00:00

Puka code for RabbitMQ tutorials

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

Requirements

First, you need Python Pip.

  • On Ubuntu:

    $ sudo apt-get install python-pip git-core

  • On Debian:

    $ sudo apt-get install python-setuptools git-core $ sudo easy_install pip

Now you can install Puka system-wide using Pip:

$ sudo pip install -e git+http://github.com/majek/puka.git#egg=puka

Code

Tutorial one: "Hello World!":

python send.py
python receive.py

Tutorial two: Work Queues:

python new_task.py
python worker.py