azure-storage-blob 12.18.1__py3-none-any.whl → 12.18.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1005,7 +1005,8 @@ class BlobClient(StorageAccountHostsMixin, StorageEncryptionMixin): # pylint: d
1005
1005
  This operations returns a BlobQueryReader, users need to use readall() or readinto() to get query data.
1006
1006
 
1007
1007
  :param str query_expression:
1008
- Required. a query statement.
1008
+ Required. a query statement. For more details see
1009
+ https://learn.microsoft.com/azure/storage/blobs/query-acceleration-sql-reference.
1009
1010
  :keyword Callable[~azure.storage.blob.BlobQueryError] on_error:
1010
1011
  A function to be called on any processing errors returned by the service.
1011
1012
  :keyword blob_format:
@@ -286,13 +286,23 @@ def modify_user_agent_for_encryption(
286
286
  :param str encryption_version: The version of encryption being used.
287
287
  :param Dict[str, Any] request_options: The reuqest options to add the user agent override to.
288
288
  """
289
+ # If the user has specified user_agent_overwrite=True, don't make any modifications
290
+ if request_options.get('user_agent_overwrite'):
291
+ return
292
+
293
+ # If the feature flag is already present, don't add it again
289
294
  feature_flag = f"azstorage-clientsideencryption/{encryption_version}"
290
- if feature_flag not in user_agent:
291
- index = user_agent.find(f"azsdk-python-{moniker}")
292
- user_agent = f"{user_agent[:index]}{feature_flag} {user_agent[index:]}"
295
+ if feature_flag in user_agent:
296
+ return
297
+
298
+ index = user_agent.find(f"azsdk-python-{moniker}")
299
+ user_agent = f"{user_agent[:index]}{feature_flag} {user_agent[index:]}"
300
+ # Since we are using user_agent_overwrite=True, we must prepend the user's user_agent if there is one
301
+ if request_options.get('user_agent'):
302
+ user_agent = f"{request_options.get('user_agent')} {user_agent}"
293
303
 
294
- request_options['user_agent'] = user_agent
295
- request_options['user_agent_overwrite'] = True
304
+ request_options['user_agent'] = user_agent
305
+ request_options['user_agent_overwrite'] = True
296
306
 
297
307
 
298
308
  def get_adjusted_upload_size(length: int, encryption_version: str) -> int:
@@ -4,4 +4,4 @@
4
4
  # license information.
5
5
  # --------------------------------------------------------------------------
6
6
 
7
- VERSION = "12.18.1"
7
+ VERSION = "12.18.2"
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: azure-storage-blob
3
- Version: 12.18.1
3
+ Version: 12.18.2
4
4
  Summary: Microsoft Azure Blob Storage Client Library for Python
5
5
  Home-page: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob
6
6
  Author: Microsoft Corporation
7
7
  Author-email: ascl@microsoft.com
8
8
  License: MIT License
9
9
  Keywords: azure,azure sdk
10
- Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Development Status :: 4 - Beta
11
11
  Classifier: Programming Language :: Python
12
12
  Classifier: Programming Language :: Python :: 3 :: Only
13
13
  Classifier: Programming Language :: Python :: 3
@@ -1,10 +1,10 @@
1
1
  azure/storage/blob/__init__.py,sha256=sDTaFCWfRO7YvOXyOCqyA20geR5Qc_8BSjF3PyZC3qU,10363
2
- azure/storage/blob/_blob_client.py,sha256=FBz13riW3wG4-z5SzPG3ZuVFBT49pRDj64TgL-ns5SM,235246
2
+ azure/storage/blob/_blob_client.py,sha256=40zLS2jtShcsXRZahSMdYHqgS2ivIBsx_hfV4xY2NpU,235361
3
3
  azure/storage/blob/_blob_service_client.py,sha256=5zuPmAdLGW0Eia5EjFdCMn92eeHZZ5yxGD9gVQzc8DA,40171
4
4
  azure/storage/blob/_container_client.py,sha256=Vd5W5HeTFN5ob2Nk6fg8A3kbCCqoYxD2ArpeomUT274,93324
5
5
  azure/storage/blob/_deserialize.py,sha256=HwoxR0gZmCPAHOGuVH_Zf5Zd4bPlPnEFT9Tcm2R4DJU,8876
6
6
  azure/storage/blob/_download.py,sha256=RwORtC1Y41dcCXfqvmWiGVrNpTa9fKXZmfDkuj1ov18,32373
7
- azure/storage/blob/_encryption.py,sha256=Nj7Uq-lqxTzAAgC5l4SqNMMLmikblnIHSXlYWxURL00,42729
7
+ azure/storage/blob/_encryption.py,sha256=YNtDRbyP7EI8jD1i6Kitz00_lRNyEeWcy-6GfOg9G4s,43167
8
8
  azure/storage/blob/_lease.py,sha256=4l_Y0WVwc7RyUjfRHFbVvtbdBcPchjnlZJDmcj6BANY,18749
9
9
  azure/storage/blob/_list_blobs_helper.py,sha256=ccWZaWHPiSKxlnEyd6Qe-caVVFmYSrd7u-YO6Tv4PHI,14791
10
10
  azure/storage/blob/_models.py,sha256=ejDwLc05_loYsvzjErFc1Ebcz2USv5j30HTagze6rgE,57012
@@ -12,7 +12,7 @@ azure/storage/blob/_quick_query_helper.py,sha256=D5TlBTUVf5C8NxQjG4B5hdyHCPcQDkp
12
12
  azure/storage/blob/_serialize.py,sha256=ChDWAEJ8FvIuSATPb0qQX2WFSQHbeyMEyoQNY91QPNk,8077
13
13
  azure/storage/blob/_shared_access_signature.py,sha256=EwR3OHuwE2jFGNK8BSRItBk5RXgP-bbm8Ga92iWAysc,32897
14
14
  azure/storage/blob/_upload_helpers.py,sha256=mLLm-k5yefa_7IkyiSAS1D1sh0DgZirO4AezvgkgRgg,13932
15
- azure/storage/blob/_version.py,sha256=40e-Qd0BS5wnrkgRy4fSRSzkSEykwAwVUUM24AeCFKI,331
15
+ azure/storage/blob/_version.py,sha256=mG9JWBZhpa-6MXuJ5Vem_6XFtif_2NxvPQihUfx0zFs,331
16
16
  azure/storage/blob/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  azure/storage/blob/_generated/__init__.py,sha256=J2H2yiFhRSsMCNKUI7gaYFIQ4_AAbWjPtzXdOsHFQFI,835
18
18
  azure/storage/blob/_generated/_azure_blob_storage.py,sha256=hiHiNSJj3bbXvke7eYn3CCAgXIhMQUt_QhmXCM8yVnc,4804
@@ -73,8 +73,8 @@ azure/storage/blob/aio/_lease_async.py,sha256=ZBNV868_FFEY2zyJ-gl_wVBxkXNh6PalRW
73
73
  azure/storage/blob/aio/_list_blobs_helper.py,sha256=JXrgZb2R3JhNO4P58kzpruRF52nek4JmAixfyaQQNYA,11269
74
74
  azure/storage/blob/aio/_models.py,sha256=k9vJ9GNp1IKfcSBwL1kj8aXq3gm_RYgRtK7_yJm-MTU,7684
75
75
  azure/storage/blob/aio/_upload_helpers.py,sha256=K_srGMkhxm7wU8C309QHLRFoZXR6Qt6LS9v9T3pGMdQ,13135
76
- azure_storage_blob-12.18.1.dist-info/LICENSE,sha256=_VMkgdgo4ToLE8y1mOAjOKNhd0BnWoYu5r3BVBto6T0,1073
77
- azure_storage_blob-12.18.1.dist-info/METADATA,sha256=16G4gQQda0frOz4y4JbEFL97HNwx6KfhCUs5Ah_AKxg,26209
78
- azure_storage_blob-12.18.1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
79
- azure_storage_blob-12.18.1.dist-info/top_level.txt,sha256=S7DhWV9m80TBzAhOFjxDUiNbKszzoThbnrSz5MpbHSQ,6
80
- azure_storage_blob-12.18.1.dist-info/RECORD,,
76
+ azure_storage_blob-12.18.2.dist-info/LICENSE,sha256=_VMkgdgo4ToLE8y1mOAjOKNhd0BnWoYu5r3BVBto6T0,1073
77
+ azure_storage_blob-12.18.2.dist-info/METADATA,sha256=3M2LzgdiEpvy_Pp6clULNOEkRjfC89oXhaGiYXj5jdY,26196
78
+ azure_storage_blob-12.18.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
79
+ azure_storage_blob-12.18.2.dist-info/top_level.txt,sha256=S7DhWV9m80TBzAhOFjxDUiNbKszzoThbnrSz5MpbHSQ,6
80
+ azure_storage_blob-12.18.2.dist-info/RECORD,,