queue_name = 'test'
connection = pika.BlockingConnection()
channel = connection.channel()
channel.queue_declare(queue=queue_name)
channel.basic_consume(on_message, queue_name)
channel.basic_publish(exchange='', routing_key=queue_name, body='A Message')
try:
    channel.start_consuming()
except KeyboardInterrupt:
    channel.stop_consuming()
my_threading_actor_ref.stop()
my_eventlet_actor_ref.stop()
connection.close()
How to send RabbitMQ messages to Pykka actor?