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

amqp.platform

Platform compatibility.

amqp.platform.pack()

Return string containing values v1, v2, ... packed according to fmt.

amqp.platform.pack_into()

Pack the values v1, v2, ... according to fmt. Write the packed bytes into the writable buffer buf starting at offset.

amqp.platform.unpack()

Unpack the string containing packed C structure data, according to fmt. Requires len(string) == calcsize(fmt).

amqp.platform.unpack_from()

Unpack the buffer, containing packed C structure data, according to fmt, starting at offset. Requires len(buffer[offset:]) >= calcsize(fmt).