This document describes the current stable version of py-amqp (5.0). For development docs, go here.
amqp.method_framing
¶
Convert between frames and higher-level AMQP methods.
-
amqp.method_framing.
frame_handler
(connection, callback, unpack_from=<built-in function unpack_from>, content_methods=frozenset({(60, 50), (60, 60), (60, 71)}))[source]¶ Create closure that reads frames.
-
amqp.method_framing.
frame_writer
(connection, transport, pack=<built-in function pack>, pack_into=<built-in function pack_into>, range=<class 'range'>, len=<built-in function len>, bytes=<class 'bytes'>, str_to_bytes=<function str_to_bytes>, text_t=<class 'str'>)[source]¶ Create closure that writes frames.