pamqp.frame

Manage the marshaling and unmarshaling of AMQP frames

unmarshal will turn a raw AMQP byte stream into the appropriate AMQP objects from the specification file.

marshal will take an object created from the specification file and turn it into a raw byte stream.

pamqp.frame.marshal(frame_value, channel_id)[source]

Marshal a frame to be sent over the wire.

Parameters
Return type

str

Raises

ValueError

pamqp.frame.unmarshal(data_in)[source]

Takes in binary data and maps builds the appropriate frame type, returning a frame object.

Parameters

data_in (bytes) – Raw byte stream data

Return type

tuple of bytes consumed, channel, and a frame object

Raises

specification.FrameError