Publishing a message to queue in RabbitPy
<p>I am looking to RabbitPy for consuming and publishing messages. The consumption part is fine, However I want to send back messages to a specific queue after doing something with the inbound message. However I cannot find anyway to do this in the documentation.</p>

<p><a href="https://rabbitpy.readthedocs.io/en/latest/api/message.html" rel="nofollow noreferrer">https://rabbitpy.readthedocs.io/en/latest/api/message.html</a> </p>

<p>Here is my consume code:</p>

<pre><code>with rabbitpy.Connection('amqp://guest:guest@localhost:5672/%2f') as conn:
        with conn.channel() as channel:
            queue_read = rabbitpy.Queue(channel, QUEUE_NAME)
            queue_write = rabbitpy.Queue(channel, QUEUE_NAME_RESPONSE)
            # Exit on CTRL-C
            try:
                # Consume the message
                for body in queue_read:
                   # do something on inboud...
</code></pre>

<p>Here is what it seems I can only set in creating and sending a message:</p>

<pre><code>message = rabbitpy.Message(channel, result)
message.publish(EXCHANGE, RESPONSE_ROUTING_KEY, mandatory=False)
</code></pre>

<p>There is nothing related to a queue. How can I send a message to a specific queue with a routing key?</p>

<p>In Pika I would use the following:</p>

<pre><code>channel = cnn.channel()
channel.exchange_declare(exchange=EXCHANGE, durable='True')
channel.exchange_declare(exchange=EXCHANGE, type='direct', durable='True')
channel.queue_declare(queue=QUEUE_NAME_RESPONSE, durable='True')
channel.queue_bind(exchange=EXCHANGE, queue=QUEUE_NAME_RESPONSE)
channel.basic_publish(exchange=EXCHANGE, routing_key=RESPONSE_ROUTING_KEY, body=return_JSON,properties=pika.BasicProperties(content_type='text/plain', delivery_mode=2))
channel.close()
</code></pre>

<p>How can I do this with RabbitPy?</p>