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.utils`

Compatibility utilities.

amqp.utils.bytes_to_str(s)

  Convert bytes to str.

amqp.utils.coro(gen)

  Decorator to mark generator as a co-routine.

amqp.utils.get_logger(logger)

  Get logger by name.

amqp.utils.set_cloexec(fd, cloexec)

  Set flag to close fd after exec.

amqp.utils.str_to_bytes(s)

  Convert str to bytes.