This document is for py-amqp's development version, which can be significantly different from previous releases. Get the stable docs here: 5.3.

# `amqp.serialization`

Convert between bytestreams and higher-level AMQP types.

2007-11-05 Barry Pederson <bp@barryp.org>

class amqp.serialization.GenericContent(frame_method=None, frame_args=None, **props)

  Abstract base class for AMQP content.

  Subclasses should override the PROPERTIES attribute.

  CLASS_ID = None
  PROPERTIES = [('dummy', 's')]
  body_received
  body_size
  frame_args
  frame_method
  inbound_body(buf)
  inbound_header(buf, offset=0)
  properties
  ready

amqp.serialization.decode_properties_basic(buf, offset)

  Decode basic properties.

amqp.serialization.dumps(format, values)

  Serialize AMQP arguments.

  Notes:

    bit = b octet = o short = B long = l long long = L shortstr = s longstr = S byte array = x table = F array = A

amqp.serialization.loads(format, buf, offset)

  Deserialize amqp format.

  bit = b octet = o short = B long = l long long = L float = f shortstr = s longstr = S table = F array = A timestamp = T