Commit d37447a8 authored by AVPetukhov's avatar AVPetukhov
Browse files

Upload New File

parent e319913d
import pika
credentials = pika.PlainCredentials('Anton', 'Anton')
connection = pika.BlockingConnection(
pika.ConnectionParameters(host='217.9.89.214', port=5672, virtual_host='/', credentials=credentials))
channel = connection.channel()
channel.queue_declare(queue='Anton')
for num in range(101):
channel.basic_publish(exchange='', routing_key='Anton', body=str(num*num))
print("Sent")
connection.close()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment