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

amqp.platform

Platform compatibility.

amqp.platform.pack(format, v1, v2, ...) → bytes

Return a bytes object containing the values v1, v2, … packed according to the format string. See help(struct) for more on format strings.

amqp.platform.pack_into(format, buffer, offset, v1, v2, ...)

Pack the values v1, v2, … according to the format string and write the packed bytes into the writable buffer buf starting at offset. Note that the offset is a required argument. See help(struct) for more on format strings.

amqp.platform.unpack()

Return a tuple containing values unpacked according to the format string.

The buffer’s size in bytes must be calcsize(format).

See help(struct) for more on format strings.

amqp.platform.unpack_from()

Return a tuple containing values unpacked according to the format string.

The buffer’s size, minus offset, must be at least calcsize(format).

See help(struct) for more on format strings.