Permalink
Switch branches/tags
Nothing to show
Find file Copy path
88f868d Nov 12, 2015
3 contributors

Users who have contributed to this file

@majek @Ferada @emile
executable file 16 lines (11 sloc) 371 Bytes
#!/usr/bin/env python
import pika
connection = pika.BlockingConnection(pika.ConnectionParameters(
host='localhost'))
channel = connection.channel()
channel.queue_declare(queue='hello')
channel.basic_publish(exchange='',
routing_key='hello',
body='Hello World!')
print(" [x] Sent 'Hello World!'")
connection.close()