This version and all future versions will require Python 3.8+. Python 3.7 is no longer supported.
- The
servicesparameter has been added to thegenerate_account_sasAPI, which enables the ability to generate SAS tokens to be used with multiple services. By default, the SAS token service scope will default to the current service.
- Bumped dependency of
typing-extensionsto>=4.6.0to avoid potentialTypeErrorwithtyping.TypeVaron Python 3.12. - Fixed an issue where authentication errors could raise
AttributeErrorinstead ofClientAuthenticationErrorwhen using async OAuth credentials.
- Updated type hints across the entire package and enabled MyPy to run during CI. Some public types may have been adjusted if they were previously erroneous or incomplete.
- Stable release of features from 12.18.0b1
- Added
audienceas an optional keyword that can be specified on APIs that have acredentialparameter. This keyword only has an effect when the credential provided is of typeTokenCredential.
- Fixed an issue when an invalid type was provided for
credentialduring client construction, the__str__of the object would be present in the exception message and therefore potentially logged.
- Fixed an issue where
user_agentwas being ignored onsend_message,receive_message,receive_messages,update_message, andpeek_messagesif client was configured for encryption.
- Fixed breaking
KeyError: 'sdk_moniker'increate_configuration. NOTE: This is not an exported method and therefore should not be imported/called directly.
- Stable release of features from 12.7.0b1
- Bumped
azure-coreminimum dependency to 1.28.0 andtyping-extensionsto 4.3.0.
- Stable release of features from 12.6.0b1
- Removed
msrestdependency. - Added
typing-extensions>=4.0.1as a dependency. - Added
isodate>=0.6.1as a dependency. - Added extra dependency
aiofor installing optional async dependencies. Usepip install azure-storage-queue[aio]to install.
- Stable release of features from 12.5.0b1.
- Changed the default value for
read_timeoutto 60 seconds for all clients.
This version and all future versions will require Python 3.7+. Python 3.6 is no longer supported.
- Added support for
AzureNamedKeyCredentialas a validcredentialtype.
- Stable release of features from 12.4.0b1.
- Introduced version 2.0 of client-side encryption for Queue messages which utilizes AES-GCM-256 encryption.
Version 1.0 is now deprecated and no longer considered secure. If you are using client-side encryption, it is
highly recommended that you update to version 2.0.
The encryption version can be specified on any client constructor via the
encryption_versionkeyword (i.e.encryption_version='2.0').
- Stable release of features from 12.3.0b1.
- Fixed a bug, introduced in the previous beta release, that caused Authentication errors when attempting to use an Account SAS with certain service level operations.
- Added support for
max_messagesinreceive_messages()to specify the maximum number of messages to receive from the queue.
- Updated SAS token generation to use the latest supported service version by default. Moving to the latest version also included a change to how account SAS is generated to reflect a change made to the service in SAS generation for service version 2020-12-06.
- Updated documentation for
receive_messages()to explain iterator behavior and life-cycle. - Added a sample to
queue_samples_message.py(and async-equivalent) showcasing the use ofmax_messagesinreceive_messages().
This version and all future versions will require Python 3.6+. Python 2.7 is no longer supported.
- Update
azure-coredependency to avoid inconsistent dependencies from being installed.
Fixes
- Make
AccountName,AccountKeyetc. in conn_str case insensitive - Fixed unclosed
ThreadPoolExecutor(#8955)
New features
- Added support for
AzureSasCredentialto allow SAS rotation in long living clients.
New feature
- Added
receive_messageon QueueClient to support receiving one message from queue (#14844, #14762)
Notes
- Updated dependency
azure-corefrom azure-core<2.0.0,>=1.6.0 to azure-core<2.0.0,>=1.9.0 to get continuation_token attr on AzureError.
Fixes
- Fixed QueueClient type declaration (#11392).
Notes
- Updated dependency from azure-core<2.0.0,>=1.2.2 to azure-core<2.0.0,>=1.6.0
Fixes
- Responses are always decoded as UTF8
Notes
- The
StorageUserAgentPolicyis now replaced with theUserAgentPolicyfrom azure-core. With this, the custom user agents are now added as a prefix instead of being appended.
New features
- All the clients now have a
close()method to close the sockets opened by the client when using without a context manager.
Breaking changes
QueueClientnow accepts onlyaccount_urlwith mandatory a string paramqueue_name. To use a queue_url, the methodfrom_queue_urlmust be used.set_queue_access_policyhas required parametersigned_identifiers.NoRetrypolicy has been removed. Use keyword argumentretry_total=0for no retries.NoEncodePolicyandNoDecodePolicyhave been removed. Usemessage_encode_policy=Noneandmessage_decode_policy=None.- Removed types that were accidentally exposed from two modules. Only
QueueServiceClientandQueueClientshould be imported from azure.storage.queue.aio - Some parameters have become keyword only, rather than positional. Some examples include:
loopmax_concurrencyvalidate_contenttimeoutetc.
QueueMessagehas had its parameters renamed frominsertion_time,time_next_visible,expiration_timetoinserted_on,next_visible_on,expires_on, respectively.Logginghas been renamed toQueueAnalyticsLogging.enqueue_messageis now calledsend_message.- Client and model files have been made internal. Users should import from the top level modules
azure.storage.queueandazure.storage.queue.aioonly. - The
generate_shared_access_signaturemethods on bothQueueServiceClientandQueueClienthave been replaced by module level functionsgenerate_account_sasandgenerate_queue_sas. get_service_statsnow returns a dictget_service_propertiesnow returns a dict with keys consistent toset_service_properties
New features
ResourceTypes, andServicesnow have methodfrom_stringwhich takes parameters as a string.
Fixes and improvements
- Fixed an issue where XML is being double encoded and double decoded.
Breaking changes
- Permission models.
AccountPermissions,QueuePermissionshave been renamed toAccountSasPermissions,QueueSasPermissionsrespectively.- enum-like list parameters have been removed from both of them.
__add__and__or__methods are removed.
max_connectionsis now renamed tomax_concurrency.
New features
AccountSasPermissions,QueueSasPermissionsnow have methodfrom_stringwhich takes parameters as a string.
Dependency updates
-
Adopted azure-core 1.0.0b3
- If you later want to revert to previous versions of azure-storage-queue, or another Azure SDK library requiring azure-core 1.0.0b1 or azure-core 1.0.0b2, you must explicitly install the specific version of azure-core as well. For example:
pip install azure-core==1.0.0b2 azure-storage-queue==12.0.0b2
Breaking changes
- The behavior of listing operations has been modified:
- The previous
markerparameter has been removed. - The iterable response object now supports a
by_pagefunction that will return a secondary iterator of batches of results. This function supports acontinuation_tokenparameter to replace the previousmarkerparameter.
- The previous
- The new listing behaviour is also adopted by the
receive_messagesoperation:- The receive operation returns a message iterator as before.
- The returned iterator supports a
by_pageoperation to receive messages in batches.
New features
- Added async APIs to subnamespace
azure.storage.queue.aio. - Distributed tracing framework OpenCensus is now supported.
Dependency updates
-
Adopted azure-core 1.0.0b2
- If you later want to revert to azure-storage-queue 12.0.0b1, or another Azure SDK library requiring azure-core 1.0.0b1, you must explicitly install azure-core 1.0.0b1 as well. For example:
pip install azure-core==1.0.0b1 azure-storage-queue==12.0.0b1
Fixes and improvements
- General refactor of duplicate and shared code.
Version 12.0.0b1 is the first preview of our efforts to create a user-friendly and Pythonic client library for Azure Storage Queues. For more information about this, and preview releases of other Azure SDK libraries, please visit https://aka.ms/azure-sdk-preview1-python.
Breaking changes: New API design
-
Operations are now scoped to a particular client:
QueueServiceClient: This client handles account-level operations. This includes managing service properties and listing the queues within an account.QueueClient: The client handles operations within a particular queue. This includes creating or deleting that queue, as well as enqueueing and dequeueing messages.
These clients can be accessed by navigating down the client hierarchy, or instantiated directly using URLs to the resource (account or queue). For full details on the new API, please see the reference documentation.
-
New message iterator, for receiving messages from a queue in a continuous stream.
-
New underlying REST pipeline implementation, based on the new
azure-corelibrary. -
Client and pipeline configuration is now available via keyword arguments at both the client level, and per-operation. See reference documentation for a full list of optional configuration arguments.
-
Authentication using
azure-identitycredentials- see the Azure Identity documentation for more information
-
New error hierarchy:
- All service errors will now use the base type:
azure.core.exceptions.HttpResponseError - The are a couple of specific exception types derived from this base type for common error scenarios:
ResourceNotFoundError: The resource (e.g. queue, message) could not be found. Commonly a 404 status code.ResourceExistsError: A resource conflict - commonly caused when attempting to create a resource that already exists.ResourceModifiedError: The resource has been modified (e.g. overwritten) and therefore the current operation is in conflict. Alternatively this may be raised if a condition on the operation is not met.ClientAuthenticationError: Authentication failed.
- All service errors will now use the base type:
-
No longer have specific operations for
get_metadata- useget_propertiesinstead. -
No longer have specific operations for
exists- useget_propertiesinstead. -
Operations
get_queue_aclandset_queue_aclhave been renamed toget_queue_access_policyandset_queue_access_policy. -
Operation
put_messagehas been renamed toenqueue_message. -
Operation
get_messageshas been renamed toreceive_messages.
- Updated dependency on azure-storage-common.
- Support for 2018-11-09 REST version.
- azure-storage-nspkg is not installed anymore on Python 3 (PEP420-based namespace package)
- Support for 2018-03-28 REST version. Please see our REST API documentation and blog for information about the related added features.
- Support for 2017-11-09 REST version. Please see our REST API documentation and blog for information about the related added features.
- Added support for OAuth authentication for HTTPS requests(Please note that this feature is available in preview).
- Support for 2017-07-29 REST version. Please see our REST API documentation and blogs for information about the related added features.
- Queue messages can now have an arbitrarily large or infinite time to live.
- Error message now contains the ErrorCode from the x-ms-error-code header value.
- The package has switched from Apache 2.0 to the MIT license.