themachine/core/__init__.py
def publish(topic, data):
    """
    Publishes a message into a topic.
    Data should be a dictionary

    :param topic:   Topic to publish
    :param data:    Data to send
    """
    channel.basic_publish(
        exchange='amq.topic',
        routing_key=topic.lower(),
        body=json.dumps(data))

    Publishes a message into a topic.
    Data should be a dictionary

    :param topic:   Topic to publish
    :param data:    Data to send
    
Publishes a message into a topic.
Data should be a dictionary
Publishes a message into a topic . Data should be a dictionary
def publish(topic, data):
    channel.basic_publish(
        exchange='amq.topic',
        routing_key=topic.lower(),
        body=json.dumps(data))
def publish ( topic , data ) : channel . basic_publish ( exchange = 'amq.topic' , routing_key = topic . lower ( ) , body = json . dumps ( data ) )
Publishes a message into a topic.
Publishes a message into a topic .
"""
    Publishes a message into a topic.
    Data should be a dictionary

    :param topic:   Topic to publish
    :param data:    Data to send
    """
topic
Topic to publish
Topic to publish
data
Data to send
Data to send