This document describes the current stable version of py-amqp (2.0). For development docs, go here.

amqp.basic_message

Messages for AMQP

class amqp.basic_message.Message(body=u'', children=None, channel=None, **properties)[source]

A Message for use with the Channnel.basic_* methods.

CLASS_ID = 60
PROPERTIES = [(u'content_type', u's'), (u'content_encoding', u's'), (u'application_headers', u'F'), (u'delivery_mode', u'o'), (u'priority', u'o'), (u'correlation_id', u's'), (u'reply_to', u's'), (u'expiration', u's'), (u'message_id', u's'), (u'timestamp', u'L'), (u'type', u's'), (u'user_id', u's'), (u'app_id', u's'), (u'cluster_id', u's')]

Instances of this class have these attributes, which are passed back and forth as message properties between client and server

delivery_info = None

set by basic_consume/basic_get

delivery_tag
headers