uamqp v1.1.0
-
Support for Python 2.7
- Where ever a
TimeoutErroris raised in Python 3.x, this will be replaced with a new ~uamqp.errors.ClientTimeout exception in Python 2.7. - A Python 2
strobject will be treated asbytesin Python 3 and a Python 2unicodeobject will be treated like a Python 3str. - Added uamqp.compat module for handling Py 2 vs 3 imports and types (PR#46, Thanks to maxkrivich).
- Where ever a
-
AMQP encoding of an integer type will now automatically failover into a Long type or a double type if the value is too large.
-
Improved support for promptly detecting invalid ATTACH handles and raising the appropriate error.
-
Added types for AMQPDescribed, AMQPInt and AMQPuInt for explicit handling of int and unsigned int encoding.
-
Added new error
errors.AMQPClientShutdownas a wrapper forKeyboardInterruptto better handle interrupt handling. -
Added better handling of keyboard interrupts during C callbacks to better facilitate clean client shutdown.
-
Added additional handling of keyboard interrupt at the C level to clean up annoying warnings.
-
Added classmethod
Message.decode_from_bytesto create a message from AMQP wire-encoded data. -
Added
Message.encode_messagemethod to retrieve the AMQP wire-encoded byte representation of the current message. -
Fixed behaviour of
Message.get_message_encoded_size()to return accurate size. -
Added new optional
callbackargument toclient.mgmt_requestto allow for custom handling of different status codes. -
Added new client methods
auth_complete()andclient_ready()to allow for more fine-tuned monitoring or the client opening stages. -
Client message handler is now a public attribute
client.message_handler(SendClient._message_senderandReceiveClient._message_receiverare now deprecated). -
Added automatic encoding of
datetime.datetimeobjects into AMQP timestamp. -
Better support for Source filters with optional
descriptorargument inSource.set_filter()and newSource.get_filter()method. -
Fixed Session settings not being passed to CBS session.
-
Added support for a callback on receipt on a Link ATTACH frame. Can be supplied to a client through the
on_attachkeyword argument. -
Removed unsued message.SequenceBody class.
-
Exposed BatchMessage.size_offset property for batch size customization.