Skip to main content

AMQP 1.0 Client Library for Python

Project description

uAMQP for Python

https://img.shields.io/pypi/v/uamqp.svg https://img.shields.io/pypi/pyversions/uamqp.svg https://dev.azure.com/azure-sdk/public/_apis/build/status/python/azure-uamqp-python%20-%20client?branchName=main

An AMQP 1.0 client library for Python.

Disclaimer

This repo is no longer in active maintenance and we plan on deprecating it sometime in the first quarter of 2025. The EventHubs & Service Bus client libraries are now using the python based AMQP library which is under active development. If there is interest in using the new python library as standalone, please share your interest in this issue.

uAMQP for Python requires Python 3.6+ starting from v1.5, and Python 2.7 is no longer supported. If Python 2.7 is required, please install uAMQP v1.4.3:

$ pip install uamqp==1.4.3

Installation

Wheels are provided for most major operating systems, so you can install directly with pip:

$ pip install uamqp

If you are running a Linux distro that does not support ManyLinux1 or you need to customize the build based on your system settings and packages, you can install from source:

$ apt-get update
$ apt-get install -y build-essential libssl-dev uuid-dev cmake libcurl4-openssl-dev pkg-config python3-dev python3-pip
$ pip3 install uamqp --no-binary :all:

If you are running Alpine, you can install from source:

$ apk add --update python3 py-pip python3-dev cmake gcc g++ openssl-dev build-base
$ pip3 install uamqp --no-binary :all:

If you are running Red Hat, you can install from source:

$ yum install cmake gcc gcc-c++ make openssl-devel python3-devel
$ pip3 install uamqp --no-binary :all:

Documentation

Reference documentation can be found here: docs.microsoft.com/python/api/uamqp/uamqp.

Developer Setup

In order to run the code directly, the Cython extension will need to be build first.

Pre-requisites

  • Windows: Setup a build environment.

  • Linux: Install dependencies as descriped above in the installation instructions.

  • MacOS: Install cmake using Homebrew:

$ brew install cmake

Building the extension

This project has two C library dependencies. They are vendored in this repository in these versions:

To build, start by creating a virtual environment and installing the required Python packages:

$ python -m venv env
$ env/Scripts/activate
(env)$ pip install -r dev_requirements.txt

Next, run the build command:

$ python setup.py build_ext --inplace

Tests

The tests can be run from within the virtual environment. The extension must be built first using the instructions above.

(env)$ pytest

Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Release History

1.6.10 (2024-09-11)

  • Incorporate fixes from PR to update vendor uamqp code.

1.6.9 (2024-03-20)

  • Incorporate fixes from PR

1.6.8 (2024-01-29)

  • Incorporate fixes from PR

1.6.7 (2024-01-17)

  • Fixes for CVE-2024-21646

1.6.6 (2023-11-16)

  • Added support for python 3.11

1.6.5 (2023-07-12)

  • Few more updates to submodules to support OpenSSL 3.0 compilation

1.6.4 (2023-02-09)

  • Updated OpenSSL dependency to 1.1.1t

  • Updated submodules to support OpenSSL 3.0 compilation

  • Removed dependency on six

  • Fixed a bug that caused the wrong port to selected for websockets when a port was not passed in

1.6.3 (2022-10-27)

  • Publish 3.11 wheels

1.6.2 (2022-10-27)

  • Added support for python 3.11

  • Updated OpenSSL dependency to 1.1.1q

  • Updated cython dependency to 0.29.32

  • Dropped support for manylinux2010

  • Using cibuildwheel to generate wheels

1.6.1 (2022-10-11)

  • Added support for handling of duplicate certificates in azure-c-shared-utility dependency by using CERT_STORE_ADD_REPLACE_EXISTING parameter in the CertAddEncodedCertificateToStore function call. (azure-sdk-for-python issue #26034)

1.6.0 (2022-08-18)

This version and all future versions will require Python 3.7+, Python 3.6 is no longer supported.

  • Added data, value, sequence properties to uamqp.Message, which return the body if the body type corresponds.

  • Added message_annotations property to uamqp.Message, which is an alias for the annotations instance variable.

  • Added data property to uamqp.BatchMessage, which returns the iterable body of the batch.

  • Added ttl property to uamqp.MessageHeader, which is an alias for the time_to_live instance variable.

1.5.3 (2022-03-23)

  • Updated OpenSSL dependency to 1.1.1n for wheels of manylinux and macOS.

1.5.2 (2022-03-15)

  • Fixed bug that resulted in an error when deepcopying BatchMessage objects (azure-sdk-for-python issue #22529).

1.5.1 (2022-01-12)

  • Added back the support for Python 3.6.

1.5.0 (2022-01-05)

This version and all future versions will require Python 3.7+, Python 2.7 and Python 3.6 are no longer supported.

  • SASTokenAuth, JWTTokenAuth, SASTokenAsync, and JWTTokenAsync now takes keyword argument refresh_window to override default token refresh timing in constructors.

  • Fixed bug that SendClientAsync might run into infinite loop while sending when it is shutdown unexpectedly.

  • Updated dependencies Azure uAMQP C @ 2021-11-16 and Azure C Shared Utility @ 2021-11-15.

  • Fixed bug that the keep_alive_thread of AMQPClient should not keep program from exiting in the case of AMQPClient not being closed properly.

1.4.3 (2021-10-06)

  • Added support for Python 3.10.

1.4.2 (2021-09-21)

  • Fixed memory leak in win32 socketio and tlsio (azure-sdk-for-python issue #19777).

  • Fixed memory leak in the process of converting AMQPValue into string (azure-sdk-for-python issue #19777).

1.4.1 (2021-06-28)

  • Fixed bug that JWTTokenAuth and JWTTokenAsync do not initialize token for token types other than b’jwt’.

  • Fixed bug that attibutes creation_time, absolute_expiry_time and group_sequence on MessageProperties should be compatible with integer types on Python 2.7.

1.4.0 (2021-05-03)

This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported.

  • Fixed memory leaks in the process of link attach where source and target cython objects are not properly deallocated (azure-sdk-for-python issue #15747).

  • Improved management operation callback not to parse description value of non AMQP_TYPE_STRING type as string (azure-sdk-for-python issue #18361).

1.3.0 (2021-04-05)

This version will be the last version to officially support Python 3.5, future versions will require Python 2.7 or Python 3.6+.

  • Added support for AMQP Sequence as the body type of an amqp message.

  • Added new class uamqp.MessageBodyType to represent the body type of an amqp message, including:

    • Data: The body consists of one or more data sections and each section contains opaque binary data.

    • Sequence: The body consists of one or more sequence sections and each section contains an arbitrary number of structured data elements.

    • Value: The body consists of one amqp-value section and the section contains a single AMQP value.

  • Added new parameters to the constructor of uamqp.Message:

    • body_type which takes uamqp.MessageBodyType to specify the body type of an amqp message.

    • footer which takes a dict to set the footer of an amqp message.

    • delivery_annotations which takes a dict to set the delivery annotations of an amqp message.

  • Added support for pickling uamqp.Message.

  • Fixed bug that sending message of large size triggering segmentation fault when the underlying socket connection is lost.

  • Fixed bug in link flow control where link credit and delivery count should be calculated based on per message instead of per transfer frame.

1.2.15 (2021-03-02)

  • Added desired-capabilities for SendClient(Async) and MessageSender(Async) as part of the AMQP protocol.

  • Added types for AMQPShort and AMQPuShort for explicit handling of short and unsigned short encoding.

1.2.14 (2021-02-01)

  • Updated Azure uAMQP C and Azure C Shared Utility dependencies.

  • Fixed memory leak with SAS Token creation.

1.2.13 (2021-01-06)

  • Fixed bug in accessing MessageProperties.user_id triggering segmentation fault when the underlying C bytes are NULL.

  • Fixed bug in MessageProperties.user_id being limited to 8 bytes.

  • Fixed bug where connection establishment on macOS with Clang 12 triggering unrecognized selector exception.

  • Fixed bug that macOS was unable to detect network error.

  • Fixed bug that ReceiveClient and ReceiveClientAsync receive messages during connection establishment.

1.2.12 (2020-10-09)

  • Updated cython dependency to 0.29.21.

  • Added support for Python 3.9.

1.2.11 (2020-10-01)

  • Updated tlsio_openssl module to send SNI when establishing tls connection (Thanks to milope).

  • Fixed bug where Message.footer and Message.delivery_annotation were not encoded into the outgoing payload.

  • Fixed bug where message sending timeout error didn’t get raised out.

1.2.10 (2020-08-05)

  • Added parameter shutdown_after_timeout to ReceiveClient and ReceiveClientAsync which gives control over whether to shutdown receiver after timeout.

1.2.9 (2020-07-06)

  • Added method MessageReceiver.reset_link_credit which is responsible for resetting current available link credit on the receiver link and send update to the sender.

1.2.8 (2020-05-19)

  • Fix to initialize delivery_count header at 0 instead of None (azure-sdk-for-python issue #9708)

  • Added info fields to rejected delivery disposition.

1.2.7 (2020-05-04)

  • Fixed bug in setting certificate of tlsio on MacOS (azure-sdk-for-python issue #7201).

  • Fixed seg fault in logging network tracing on MacOS (PR#147, Thanks to malthe).

  • Fixed typos in log messages (PR#146, Thanks to bluca).

  • Improved reproducibility of the generated c_uamqp.c file (PR#144, Thanks to bluca).

1.2.6 (2020-02-13)

  • Fixed seg fault in tearing down a failed link with unsent pending messages.

1.2.5 (2019-12-10)

  • Fixed garbage collection of C objects to prevent crashing on uncontrolled shutdown.

  • Fixed missing event loop references passed into asyncio functions.

  • Fixed bug in noneffective flow control when large messages are received.

  • Demote link redirect logging from warning to info.

1.2.4 (2019-12-02)

  • Fixed bug in calculating send timeout.

  • Removed ThreadPoolExecutor in ConnectionAsync.

  • Added support for Python 3.8

1.2.3 (2019-10-07)

  • Fixed bug in dropping received messages at the moment when the connection just started working.

  • Fixed bug where underlying io type wasn’t set to WebSocket when http_proxy was applied (PR#92, Thanks to skoop22).

  • Fixed bug in noneffective timeout when sending messages.

  • Added desired-capabilities for ReceiveClient(Async) and MessageReceiver(Async) as part of the AMQP protocol.

  • Added delivery-tag to Message (azure-sdk-for-python issue #7336).

  • Added method work to MessageReceiver and work_async to MessageReceiverAsync responsible for updating link status.

1.2.2 (2019-07-02)

  • Made bug fix in asyncio.get_event_loop backwards-compatible for now by just printing a warning rather than raising an error. In the next major version bump we can disable entirely.

1.2.1 (2019-06-20)

  • Updated the implementation of update_token() in JWTTokenAuth and JWTTokenAsync (issue #80).

1.2.0 (2019-04-16)

  • Fixed bug in batched messages missing application_properties (azure-event-hubs-python issue #97).

  • Fixed bug in datetime object parsing (issue #63).

  • Fixed bug in unexposed send/receive settle modes.

  • Fixed bug where retried messages were not added back to the send queue.

  • Fixed bug in using asyncio.get_event_loop.

  • Added type objects for AMQP Byte and uBytes types.

  • Added async locking around pending messages queue (PR#54, Thanks to zach-b)

  • Added WebSocket(AMQP over WebSocket) support (azure-sdk-for-python issue #5318).

  • Added new token class JWTTokenAuth and JWTTokenAsync to support OAuth.

1.1.0 (2018-11-12)

  • Support for Python 2.7 (>_<)/

    • Where ever a TimeoutError is raised in Python 3.x, this will be replaced with a new ~uamqp.errors.ClientTimeout exception in Python 2.7.

    • A Python 2 str object will be treated as bytes in Python 3 and a Python 2 unicode object will be treated like a Python 3 str.

    • Added uamqp.compat module for handling Py 2 vs 3 imports and types (PR#46, Thanks to maxkrivich).

  • 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.AMQPClientShutdown as a wrapper for KeyboardInterrupt to 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_bytes to create a message from AMQP wire-encoded data.

  • Added Message.encode_message method 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 callback argument to client.mgmt_request to allow for custom handling of different status codes.

  • Added new client methods auth_complete() and client_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_sender and ReceiveClient._message_receiver are now deprecated).

  • Added automatic encoding of datetime.datetime objects into AMQP timestamp.

  • Better support for Source filters with optional descriptor argument in Source.set_filter() and new Source.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_attach keyword argument.

  • Removed unsued message.SequenceBody class.

  • Exposed BatchMessage.size_offset property for batch size customization.

1.0.3 (2018-09-14)

  • Reduced CPU load during idle receive.

  • Updated Azure uAMQP C and Azure C Shared Utility dependencies.

1.0.2 (2018-09-05)

  • Fixed additional bugs in setting MessageProperties as string or bytes.

  • Removed auth locking to prevent locking issues on keyboard interrupt.

1.0.1 (2018-08-29)

  • Added some more checks in place to prevent lock hanging on a keybaord interrupt.

  • Fixed bug in setting MessageProperties.subject as string or bytes.

  • uamqp.send_message now returns a list of uamqp.constants.MessageState to indicate the success of each message sent.

1.0.0 (2018-08-20)

  • API settled.

  • Behaviour change When a SendClient or SendClientAsync is shutdown, any remaining pending messages (that is messages in the states WaitingToBeSent and WaitingForSendAck) will no longer be cleared, but can be retrieved from a new attribute SendClient.pending_messages in order to be re-processed as needed.

  • Behaviour change The function SendClient.queue_message now allows for queueing multiple messages at once by simply passing in additional message instances:

    • send_client.queue_message(my_message)

    • send_client.queue_message(message_1, message_2, message_3)

    • send_client.queue_message(*my_message_list)

  • An authentication object will now raise a ValueError if one attempts to use it for more than one connection.

  • Renamed internal _async module to non-private async_ops to allow for docs generation.

  • Reformatted logging for better performance.

  • Added additional logging.

0.2.1 (2018-08-06)

  • Fixed potential crashing in bindings for amqpvalue.

  • Fixed bindings fault in cbs PUT token complete callback.

  • Updated uAMQP-C.

  • Added additional auth and connection locking for thread/async safety.

  • Increased INFO level logging.

  • Removed platform deinitialization until it can be improved.

  • Added handling for a connection reaching a client-caused error state.

0.2.0 (2018-07-25)

  • Breaking change MessageSender.send_async has been renamed to MessageSender.send, and MessageSenderAsync.send_async is now a coroutine.

  • Breaking change Removed detach_received callback argument from MessageSender, MessageReceiver, MessageSenderAsync, and MessageReceiverAsync in favour of new error_policy argument.

  • Added ErrorPolicy class to determine how the client should respond to both generic AMQP errors and custom or vendor-specific errors. A default policy will be used, but a custom policy can be added to any client by using a new error_policy argument. Value must be either an instance or subclass of ErrorPolicy.

    • The error_policy argument has also been added to MessageSender, MessageReceiver, Connection, and their async counterparts to allow for handling of link DETACH and connection CLOSE events.

    • The error policy passed to a SendClient determines the number of message send retry attempts. This replaces the previous constants.MESSAGE_SEND_RETRIES value which is now deprecated.

    • Added new ErrorAction object to determine how a client should respond to an error. It has three properties: retry (a boolean to determine whether the error is retryable), backoff (an integer to determine how long the client should wait before retrying, default is 0) and increment_retries (a boolean to determine whether the error should count against the maximum retry attempts, default is True). Currently backoff and increment_retries are only considered for message send failures.

    • Added VendorConnectionClose and VendorLinkDetach exceptions for non-standard (unrecognized) connection/link errors.

  • Added support for HTTP proxy configuration.

  • Added support for running async clients synchronously.

  • Added keep-alive support for connection - this is a background thread for a synchronous client, and a background async function for an async client. The keep-alive feature is disabled by default, to enable, set the keep_alive_interval argument on the client to an integer representing the number of seconds between connection pings.

  • Added support for catching a Connection CLOSE event.

  • Added support for Connection.sleep and ConnectionAsync.sleep_async to pause the connection.

  • Added support for surfacing message disposition delivery-state (with error information).

  • Added constants.ErrorCodes enum to map standard AMQP error conditions. This replaces the previous constants.ERROR_CONNECTION_REDIRECT and constants.ERROR_LINK_REDIRECT which are now both deprecated.

  • Added new super error AMQPError from which all exceptions inherit.

  • Added new MessageHandlerError exception, a subclass of AMQPConnectionError, for Senders/Receivers that enter an indeterminate error state.

  • MessageException is now a subclass of MessageResponse.

  • Added ClientMessageError exception, a subclass of MessageException for send errors raised client-side.

  • Catching Link DETACH event will now work regardless of whether service returns delivery-state.

  • Fixed bug where received messages attempting to settle on a detached link crashed the client.

  • Fixed bug in amqp C DescribedValue.

  • Fixed bug where client crashed on deallocating failed management operation.

0.1.1 (2018-07-14)

  • Removed circular dependency in Python 3.4 with types.py/utils.py

  • When a header properties is not set, returns None rather than raising ValueError.

  • Fixed bug in receiving messages with application properties.

0.1.0 (2018-07-05)

  • Fixed bug in error handling for CBS auth to invalid hostname.

  • Changed C error logging to debug level.

  • Bumped uAMQP C version to 1.2.7

  • Fixed memory leaks and deallocation bugs with Properties and Annotations.

0.1.0rc2 (2018-07-02)

  • Breaking change Submodule async has been renamed to the internal _async. All asynchronous classes in the submodule can now be accessed from uamqp or uamqp.authentication directly.

  • Breaking change Anything returned by a callback supplied to receive messages will now be ignored.

  • Breaking change Changed message state enum values:

    • Complete -> SendComplete

    • Failed -> SendFailed

    • WaitingForAck -> WaitingForSendAck

  • Added new message state enum values:

    • ReceivedUnsettled

    • ReceivedSettled

  • Breaking change Changes to message settlement exceptions:

    • Combined the AbandonMessage and DeferMessage exceptions as MessageModified to be in keeping with the AMQP specification.

    • Renamed AcceptMessage to MessageAccepted.

    • Renamed RejectMessage to MessageRejected which now takes condition and description arguments rather than message.

  • Added errors.LinkDetach exception as new subclass of AMQPConnectionError as a wrapped for data in a Link DETACH dispostition.

  • Added errors.LinkRedirect as a specific subclass of LinkDetach to decode the specific redirect fields of a Link Redirect response.

  • Added errors.MessageAlreadySettled exception for operations performed on a received message that has already returned a receipt dispostition.

  • Added errors.MessageReleased exception.

  • Added errors.ErrorResponse exception.

  • A received Message can now be explicitly settled through a set of new functions on the message:

    • Message.accept()

    • Message.reject(condition:str, description:str)

    • Message.release()

    • Message.modify(failed:bool, deliverable:bool, annotations:dict)

  • Added explicit auto_complete argument to ReceiveClient and ReceiveClientAsync. If auto_complete is set to False then all messages must be explicitly “accepted” or “rejected” by the user otherwise they will timeout and be released. The default is True, which is the exiting behaviour for each receive mechanism:

    • Received messages processed by callback (ReceiveClient.receive_messages()) will be automatically “accepted” if no explicit response has been set on completion of the callback.

    • Received messages processed by batch (ReceiveClient.receive_message_batch()) will by automatically “accepted” before being returned to the user.

    • Received messages processed by iterator (ReceiveClient.receive_message_iter()) will by automatically “accepted” if no explicit response has been set once the generator is incremented.

  • Added new methods to clients and connections to allow to redirect to an alternative endpoint when a LinkRedirect exception is raised. The client redirect helper cannot be used for clients that use a shared connection - the clients must be closed before the connection can be redirected. New credentials must be supplied for the new endpoint. The new methods are:

    • uamqp.Connection.redirect(redirect_info, auth)

    • uamqp.async.ConnectionAsync.redirect_async(redirect_info, auth)

    • uamqp.SendClient.redirect(redirect_info, auth)

    • uamqp.ReceiveClient.redirect(redirect_info, auth)

    • uamqp.async.SendClientAsync.redirect_async(redirect_info, auth)

    • uamqp.async.ReceiveClientAsync.redirect_async(redirect_info, auth)

  • Added on_detach_received argument to Sender and Receiver classes to pass in callback to run on Link DETACH.

  • Removed automatic char encoding for strings of length 1, and added types.AMQPChar for explicit encoding.

  • Bumped uAMQP C version to 1.2.5

  • Bumped Azure C Shared Utility to 1.1.5

  • Fixed memory leaks in MessageProperties, MessageHeader and message annotations.

0.1.0rc1 (2018-05-29)

  • Fixed import error in async receiver.

  • Exposed sender/receiver destroy function.

  • Moved receiver.open on_message_received argument to constructor.

  • Removed sasl module and moved internal classes into authentication module.

  • Added encoding parameter everywhere where strings are encoded.

  • Started documentation.

  • Updated uAMQP-C to 1.2.4 and C Shared Utility to 1.1.4 (includes fix for issue #12).

  • Fixed return type of MgmtOperation.execute - now returns ~uamqp.message.Message.

  • Made AMQP connection/session/sender/receiver types in a client overridable.

  • Added debug trace to management operations.

  • Fixed error in management callback on failed operation.

  • Default AMQP encoding of bytes is now a String type and a bytearray is a Binary type.

  • Added AMQP Array type and fixed Long type range validation.

  • Added header argument to Message and BatchMessage for setting a MessageHeader.

  • Fixed MessageHeader attribute setters.

0.1.0b5 (2018-04-27)

  • Added Certifi as a depedency to make OpenSSL certs dynamic.

  • Added verify option to authentication classes to allow setting custom certificate path (for Linux and OSX).

0.1.0b4 (2018-04-19)

  • Fixed memory leak in async receive.

  • Removed close_on_done argument from client receive functions.

  • Added receive iterator to synchronous client.

  • Made async iter receive compatible with Python 3.5.

0.1.0b3 (2018-04-14)

  • Fixed SSL errors in manylinux wheels.

  • Fixed message annoations attribute.

  • Fixed bugs in batched messages and sending batched messages.

  • Fixed conflicting receiver link ID.

  • Fixed hanging receiver by removing queue max size in sync clients.

  • Added support for sending messages with None and empty bodies.

0.1.0b2 (2018-04-06)

  • Added message send retry.

  • Added timeouts and better error handling for management requests.

  • Improved connection and auth error handling and error messages.

  • Fixed message annotations type.

  • SendClient.send_all_messages() now returns a list of message send statuses.

  • Fixed OpenSSL platform being initialized multiple times.

  • Fixed auto-refresh of SAS tokens.

  • Altered receive_batch behaviour to return messages as soon as they’re available.

  • Parameter batch_size in receive_batch renamed to max_batch_size.

  • Fixed message application_properties decode error.

  • Removed MacOS dependency on OpenSSL and libuuid.

0.1.0b1 (2018-03-24)

  • Added management request support.

  • Fixed message-less C operation ValueError.

  • Store message metadata in Python rather than C.

  • Refactored Send and Receive clients to create a generic parent AMQPClient.

  • Fixed None receive timestamp bug.

  • Removed async iterator queue due to instabilities - all callbacks are now synchronous.

0.1.0a3 (2018-03-19)

  • Added support for asynchronous message receive by iterator or batch.

  • Removed synchronous receive iterator, and replaced with synchronous batch receive.

  • Added sync and async context managers for Send and Receive Clients.

  • Fixed token instability and added put token retry policy.

  • Exposed Link ATTACH properties.

  • A connection now has a single $cbs session that can be reused between clients.

  • Added C debug trace logging to the Python logger (‘uamqp.c_uamqp’)

0.1.0a2 (2018-03-12)

  • Exposed OPEN performative properties for connection telemetry.

  • Exposed setters for message.message_annotations and message.application_properties.

  • Made adjustments to connection open and close to facilitate sharing a connection object between send/receive clients.

  • Support for username/password embedded in connection URI.

  • Clients can now optionally leave connection/session/link open for re-use.

  • Updated build process and installation instructions.

  • Various bug fixes to increase stability.

0.1.0a1 (2018-03-04)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uamqp-1.6.10.tar.gz (4.5 MB view details)

Uploaded Source

Built Distributions

uamqp-1.6.10-cp312-cp312-win_amd64.whl (834.1 kB view details)

Uploaded CPython 3.12 Windows x86-64

uamqp-1.6.10-cp312-cp312-win32.whl (764.7 kB view details)

Uploaded CPython 3.12 Windows x86

uamqp-1.6.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

uamqp-1.6.10-cp312-cp312-macosx_10_9_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

uamqp-1.6.10-cp311-cp311-win_amd64.whl (848.1 kB view details)

Uploaded CPython 3.11 Windows x86-64

uamqp-1.6.10-cp311-cp311-win32.whl (781.3 kB view details)

Uploaded CPython 3.11 Windows x86

uamqp-1.6.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

uamqp-1.6.10-cp311-cp311-macosx_10_9_x86_64.whl (997.2 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

uamqp-1.6.10-cp310-cp310-win_amd64.whl (849.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

uamqp-1.6.10-cp310-cp310-win32.whl (783.6 kB view details)

Uploaded CPython 3.10 Windows x86

uamqp-1.6.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

uamqp-1.6.10-cp310-cp310-macosx_10_9_x86_64.whl (991.5 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

uamqp-1.6.10-cp39-cp39-win_amd64.whl (857.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

uamqp-1.6.10-cp39-cp39-win32.whl (788.3 kB view details)

Uploaded CPython 3.9 Windows x86

uamqp-1.6.10-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

uamqp-1.6.10-cp39-cp39-macosx_10_9_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

uamqp-1.6.10-cp38-cp38-win_amd64.whl (858.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

uamqp-1.6.10-cp38-cp38-win32.whl (791.5 kB view details)

Uploaded CPython 3.8 Windows x86

uamqp-1.6.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

uamqp-1.6.10-cp38-cp38-macosx_10_9_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file uamqp-1.6.10.tar.gz.

File metadata

  • Download URL: uamqp-1.6.10.tar.gz
  • Upload date:
  • Size: 4.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uamqp-1.6.10.tar.gz
Algorithm Hash digest
SHA256 6e886c56f56dce24558e340b8f2a213287a6965575d348e9473b78f30b0c1a23
MD5 59bc77c8f538f590523f5f991a8bc301
BLAKE2b-256 4cd0d2a86d6092c0b9f0d9ef6eda972c4de55caa8e7533f757fa9df14add7c52

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: uamqp-1.6.10-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 834.1 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uamqp-1.6.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9b9f8dbb88bb818f1f82326ea17aa1bd1d8cdcf77260be7cba935cdf66de7496
MD5 bc3af4d661a4797e2d5699da4956aa2b
BLAKE2b-256 924bfa6a19b4cd1c9dc2d26d969c12f9a03f3e0b12b68e9df60df72132de1287

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp312-cp312-win32.whl.

File metadata

  • Download URL: uamqp-1.6.10-cp312-cp312-win32.whl
  • Upload date:
  • Size: 764.7 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uamqp-1.6.10-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b72ddd9f99e34a16d9de1125d1a4c52ee4f2e1efadebb8765ab0053b7efff988
MD5 ef34821595128b4963cb966f771e29c0
BLAKE2b-256 cfe427921e463a497d90a03b756b9e0dc17a65b1e215b9098ff1f3ed8f340a12

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for uamqp-1.6.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9df219280f4199a922d266dc63308cedf305af95035b6014467605397d7eb7c5
MD5 77fb9d81f9188c57e899eab5f2c2b646
BLAKE2b-256 159941edd5b25b667fc3e441f310dc2c0d5ef99bd6cf1674ba8d0f2db3a96e32

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for uamqp-1.6.10-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 00e6a72d048cb391bcf013a740577c159d483b5f70b4477397828d02f35b765f
MD5 09f445e1c941c0c929cee679c4c4901c
BLAKE2b-256 56c55254a7603cd46e6012a440fa6be54fb6a452064afc53aa9d61c993accaee

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: uamqp-1.6.10-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 848.1 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uamqp-1.6.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3f24467f4ef51072875225e1ac5465ba33ea86891ebbb32454459aeb311b59b2
MD5 21e695fb9f264fbfd59e76262cb88b3e
BLAKE2b-256 3a6cba5d0794a58a1f2d98241ed4cef67ac4565ba6b0d78867995083b7b07bb7

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp311-cp311-win32.whl.

File metadata

  • Download URL: uamqp-1.6.10-cp311-cp311-win32.whl
  • Upload date:
  • Size: 781.3 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uamqp-1.6.10-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7762a04b5df1a2256f666a555869b085485aee5ff96ddcc57589c1eabbac55d9
MD5 2de573d03aa0382d9edd1717923cf16c
BLAKE2b-256 1f746234e88a19b88702a7e4806bd455039611503ea74d1ab98bb514365681ed

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for uamqp-1.6.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c63f3f867385681be7ce1b0a3b8a1bea49d0111a700acfd6403749ff1c58a951
MD5 3d2569b6d999e39309850b7a21caf2b5
BLAKE2b-256 61e4077d9d044c179552b1c1fd61c23a5c9390c6983f93089e94819e4a1a49b7

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for uamqp-1.6.10-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6f62f974371e90ea70d8b9a4926c71cff7ff7a308b21c59fa60eb332ee9e0c07
MD5 4de75654dcbc6c4a4e51722e7306f2e0
BLAKE2b-256 c1c04a6858c8cfbf68f11304dc866f47e37e4cc523a240fc0865cf4e8b22bda3

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: uamqp-1.6.10-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 849.7 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uamqp-1.6.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2f1eeed4a9dc75aa31548ac7f59a758bdb10aedc82315286f22d8824d29b2281
MD5 a2c37ad6ddc449b1181d6db0f5584285
BLAKE2b-256 2287bfdd9b582f78d89a44cdb2a989c50324d3421d74a153c552c9c704129c9b

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp310-cp310-win32.whl.

File metadata

  • Download URL: uamqp-1.6.10-cp310-cp310-win32.whl
  • Upload date:
  • Size: 783.6 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uamqp-1.6.10-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9b51e84896299b839f2087a024414b0946da6a973444a71544aef62b35044422
MD5 1744a2e9ec2ee21396ddf21b76668163
BLAKE2b-256 a957d939fee373fbf8abf8033e0fd58c0a63b6a1f3ad785e53f4c7905eb40dc6

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for uamqp-1.6.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e33b9368b2790daf563ec348e7e5e37013cd949dc74f5c3705d248f8a512a780
MD5 1fa9c3372b355854d75716476df912ac
BLAKE2b-256 81061af48ba45a55df2223a1bd35fb61a63f427c8791e34e47e03ef7a58f9196

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for uamqp-1.6.10-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e04f606db36b770cac4fb5df26da496d2e6f09b03f4187be4a9e5034f37482b5
MD5 f10aec7425eaea6c0346d5a190b51718
BLAKE2b-256 be29aba4733b8aa601eb14b318e31708dbcc99c696fbab7c178602f00c1d6cb2

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: uamqp-1.6.10-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 857.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uamqp-1.6.10-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 37716fbc103fd33fd5e7bb0fe68434c50003b54f3d432a51a9c54988ef41bed4
MD5 fb31bb25979656ae9ca09fe20c45d227
BLAKE2b-256 ed60ac17161017afdffca63b62d7771802cdc37317f68023cba37b3291d20a3e

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp39-cp39-win32.whl.

File metadata

  • Download URL: uamqp-1.6.10-cp39-cp39-win32.whl
  • Upload date:
  • Size: 788.3 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uamqp-1.6.10-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b7b76a091b29d939988765bd1fbc3e8332586f0c73884a6019ab60a30f43d907
MD5 17724e0bb6d997e0a33dc5b6c15d1d45
BLAKE2b-256 69cb13975140c0eb50532573eb9609ccd1e0baa8d69cfc5b2f0b27cbb0af7861

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for uamqp-1.6.10-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c6b5862a6f1f09947e0c46ac4f78e24c877f8aada7dd38e1e095a2eb32e9de53
MD5 585b388ca5f39bba303a0da984c4a97b
BLAKE2b-256 df6d8658668b17a4464b0c2054a795c16f268bfc7e0bb6970b3f8d853f1247b1

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for uamqp-1.6.10-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 09676dc331d279abd548036595e03c8dc17b84ede97b22553b4815f41ef83968
MD5 63cab4113d8ba3467698b600c9951164
BLAKE2b-256 4ac0aea588ac9f9f68c23a1a501c0894e4af22a3096418d93907bf39b85faa89

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: uamqp-1.6.10-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 858.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uamqp-1.6.10-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dfc4277625c2c5ffb052093fd85c6b55fc5dda4a59af4a7fdf3d8aae0aa55e72
MD5 814c9054bf334c976b8e6dba51cdcf75
BLAKE2b-256 01d46297779d0db340d51f4bfd6d989e357ba74a26e03c862ea15ef6cf6fb790

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp38-cp38-win32.whl.

File metadata

  • Download URL: uamqp-1.6.10-cp38-cp38-win32.whl
  • Upload date:
  • Size: 791.5 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uamqp-1.6.10-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c822419026669aa6336e18117467e8ae9811b32239a8f2dbccc346fab3ac2222
MD5 1c536faf9c7b131a106fcc9a4dfb09be
BLAKE2b-256 1229d7fdf4de623b7c5af3d9eafe8979db43b5c5fe1e9f68d985bb34b6bfc5c2

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for uamqp-1.6.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a6e7ede4818bc0d430941b365d387734b128d57076a4a3944cd7448821bde5f5
MD5 845e545c119499fd716a3392bf99e521
BLAKE2b-256 81ce64f6b1bad3106ebc0b8d02680799fea9b44c1ec72a3b85ce64a2eaebcd80

See more details on using hashes here.

File details

Details for the file uamqp-1.6.10-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for uamqp-1.6.10-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 290fdf20c51b050cf1d36dabae5037fc2bd9476b1cb26df35f3dda0ac188c87e
MD5 2ba4de0ad20afc8f4c6f4b6afb1471c3
BLAKE2b-256 8a9bf701074516841c115752f78de3ebb2ceb775c91cc14904b68e71008c8195

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page