azure-storage-blob 2.1.0__tar.gz → 12.18.1__tar.gz

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.
Files changed (216) hide show
  1. azure-storage-blob-12.18.1/CHANGELOG.md +638 -0
  2. azure-storage-blob-2.1.0/LICENSE.txt → azure-storage-blob-12.18.1/LICENSE +3 -3
  3. azure-storage-blob-12.18.1/MANIFEST.in +7 -0
  4. azure-storage-blob-12.18.1/PKG-INFO +499 -0
  5. azure-storage-blob-12.18.1/README.md +471 -0
  6. {azure-storage-blob-2.1.0 → azure-storage-blob-12.18.1}/azure/__init__.py +1 -1
  7. {azure-storage-blob-2.1.0 → azure-storage-blob-12.18.1}/azure/storage/__init__.py +1 -1
  8. azure-storage-blob-12.18.1/azure/storage/blob/__init__.py +250 -0
  9. azure-storage-blob-12.18.1/azure/storage/blob/_blob_client.py +4345 -0
  10. azure-storage-blob-12.18.1/azure/storage/blob/_blob_service_client.py +794 -0
  11. azure-storage-blob-12.18.1/azure/storage/blob/_container_client.py +1767 -0
  12. azure-storage-blob-12.18.1/azure/storage/blob/_deserialize.py +210 -0
  13. azure-storage-blob-12.18.1/azure/storage/blob/_download.py +798 -0
  14. azure-storage-blob-12.18.1/azure/storage/blob/_encryption.py +1016 -0
  15. azure-storage-blob-12.18.1/azure/storage/blob/_generated/__init__.py +23 -0
  16. azure-storage-blob-12.18.1/azure/storage/blob/_generated/_azure_blob_storage.py +100 -0
  17. azure-storage-blob-12.18.1/azure/storage/blob/_generated/_configuration.py +58 -0
  18. azure-storage-blob-12.18.1/azure/storage/blob/_generated/_patch.py +31 -0
  19. azure-storage-blob-12.18.1/azure/storage/blob/_generated/_serialization.py +2006 -0
  20. azure-storage-blob-12.18.1/azure/storage/blob/_generated/_vendor.py +16 -0
  21. azure-storage-blob-12.18.1/azure/storage/blob/_generated/aio/__init__.py +23 -0
  22. azure-storage-blob-12.18.1/azure/storage/blob/_generated/aio/_azure_blob_storage.py +100 -0
  23. azure-storage-blob-12.18.1/azure/storage/blob/_generated/aio/_configuration.py +58 -0
  24. azure-storage-blob-12.18.1/azure/storage/blob/_generated/aio/_patch.py +31 -0
  25. azure-storage-blob-12.18.1/azure/storage/blob/_generated/aio/operations/__init__.py +29 -0
  26. azure-storage-blob-12.18.1/azure/storage/blob/_generated/aio/operations/_append_blob_operations.py +755 -0
  27. azure-storage-blob-12.18.1/azure/storage/blob/_generated/aio/operations/_blob_operations.py +3308 -0
  28. azure-storage-blob-12.18.1/azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +1182 -0
  29. azure-storage-blob-12.18.1/azure/storage/blob/_generated/aio/operations/_container_operations.py +1982 -0
  30. azure-storage-blob-12.18.1/azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +1538 -0
  31. azure-storage-blob-12.18.1/azure/storage/blob/_generated/aio/operations/_patch.py +23 -0
  32. azure-storage-blob-12.18.1/azure/storage/blob/_generated/aio/operations/_service_operations.py +806 -0
  33. azure-storage-blob-12.18.1/azure/storage/blob/_generated/models/__init__.py +173 -0
  34. azure-storage-blob-12.18.1/azure/storage/blob/_generated/models/_azure_blob_storage_enums.py +391 -0
  35. azure-storage-blob-12.18.1/azure/storage/blob/_generated/models/_models_py3.py +2772 -0
  36. azure-storage-blob-12.18.1/azure/storage/blob/_generated/models/_patch.py +23 -0
  37. azure-storage-blob-12.18.1/azure/storage/blob/_generated/operations/__init__.py +29 -0
  38. azure-storage-blob-12.18.1/azure/storage/blob/_generated/operations/_append_blob_operations.py +1125 -0
  39. azure-storage-blob-12.18.1/azure/storage/blob/_generated/operations/_blob_operations.py +4709 -0
  40. azure-storage-blob-12.18.1/azure/storage/blob/_generated/operations/_block_blob_operations.py +1790 -0
  41. azure-storage-blob-12.18.1/azure/storage/blob/_generated/operations/_container_operations.py +2807 -0
  42. azure-storage-blob-12.18.1/azure/storage/blob/_generated/operations/_page_blob_operations.py +2290 -0
  43. azure-storage-blob-12.18.1/azure/storage/blob/_generated/operations/_patch.py +23 -0
  44. azure-storage-blob-12.18.1/azure/storage/blob/_generated/operations/_service_operations.py +1108 -0
  45. azure-storage-blob-12.18.1/azure/storage/blob/_lease.py +351 -0
  46. azure-storage-blob-12.18.1/azure/storage/blob/_list_blobs_helper.py +334 -0
  47. azure-storage-blob-12.18.1/azure/storage/blob/_models.py +1304 -0
  48. azure-storage-blob-12.18.1/azure/storage/blob/_quick_query_helper.py +195 -0
  49. azure-storage-blob-12.18.1/azure/storage/blob/_serialize.py +226 -0
  50. azure-storage-blob-12.18.1/azure/storage/blob/_shared/__init__.py +54 -0
  51. azure-storage-blob-12.18.1/azure/storage/blob/_shared/authentication.py +187 -0
  52. azure-storage-blob-12.18.1/azure/storage/blob/_shared/avro/__init__.py +5 -0
  53. azure-storage-blob-12.18.1/azure/storage/blob/_shared/avro/avro_io.py +441 -0
  54. azure-storage-blob-12.18.1/azure/storage/blob/_shared/avro/avro_io_async.py +425 -0
  55. azure-storage-blob-12.18.1/azure/storage/blob/_shared/avro/datafile.py +261 -0
  56. azure-storage-blob-12.18.1/azure/storage/blob/_shared/avro/datafile_async.py +214 -0
  57. azure-storage-blob-12.18.1/azure/storage/blob/_shared/avro/schema.py +1177 -0
  58. azure-storage-blob-12.18.1/azure/storage/blob/_shared/base_client.py +467 -0
  59. azure-storage-blob-12.18.1/azure/storage/blob/_shared/base_client_async.py +187 -0
  60. azure-storage-blob-12.18.1/azure/storage/blob/_shared/constants.py +19 -0
  61. azure-storage-blob-12.18.1/azure/storage/blob/_shared/models.py +489 -0
  62. azure-storage-blob-12.18.1/azure/storage/blob/_shared/parser.py +60 -0
  63. azure-storage-blob-12.18.1/azure/storage/blob/_shared/policies.py +665 -0
  64. azure-storage-blob-12.18.1/azure/storage/blob/_shared/policies_async.py +255 -0
  65. azure-storage-blob-12.18.1/azure/storage/blob/_shared/request_handlers.py +271 -0
  66. azure-storage-blob-12.18.1/azure/storage/blob/_shared/response_handlers.py +198 -0
  67. azure-storage-blob-12.18.1/azure/storage/blob/_shared/shared_access_signature.py +234 -0
  68. azure-storage-blob-12.18.1/azure/storage/blob/_shared/uploads.py +604 -0
  69. azure-storage-blob-12.18.1/azure/storage/blob/_shared/uploads_async.py +460 -0
  70. azure-storage-blob-12.18.1/azure/storage/blob/_shared_access_signature.py +627 -0
  71. azure-storage-blob-12.18.1/azure/storage/blob/_upload_helpers.py +350 -0
  72. azure-storage-blob-2.1.0/azure/storage/blob/_constants.py → azure-storage-blob-12.18.1/azure/storage/blob/_version.py +1 -8
  73. azure-storage-blob-12.18.1/azure/storage/blob/aio/__init__.py +149 -0
  74. azure-storage-blob-12.18.1/azure/storage/blob/aio/_blob_client_async.py +2925 -0
  75. azure-storage-blob-12.18.1/azure/storage/blob/aio/_blob_service_client_async.py +738 -0
  76. azure-storage-blob-12.18.1/azure/storage/blob/aio/_container_client_async.py +1423 -0
  77. azure-storage-blob-12.18.1/azure/storage/blob/aio/_download_async.py +723 -0
  78. azure-storage-blob-12.18.1/azure/storage/blob/aio/_lease_async.py +345 -0
  79. azure-storage-blob-12.18.1/azure/storage/blob/aio/_list_blobs_helper.py +252 -0
  80. azure-storage-blob-12.18.1/azure/storage/blob/aio/_models.py +178 -0
  81. azure-storage-blob-12.18.1/azure/storage/blob/aio/_upload_helpers.py +327 -0
  82. azure-storage-blob-12.18.1/azure/storage/blob/py.typed +0 -0
  83. azure-storage-blob-12.18.1/azure_storage_blob.egg-info/PKG-INFO +499 -0
  84. azure-storage-blob-12.18.1/azure_storage_blob.egg-info/SOURCES.txt +194 -0
  85. azure-storage-blob-12.18.1/azure_storage_blob.egg-info/requires.txt +7 -0
  86. azure-storage-blob-12.18.1/migration_guide.md +1640 -0
  87. azure-storage-blob-12.18.1/pyproject.toml +5 -0
  88. azure-storage-blob-12.18.1/samples/README.md +111 -0
  89. azure-storage-blob-12.18.1/samples/blob_samples_authentication.py +151 -0
  90. azure-storage-blob-12.18.1/samples/blob_samples_authentication_async.py +147 -0
  91. azure-storage-blob-12.18.1/samples/blob_samples_batch_delete_blobs.py +42 -0
  92. azure-storage-blob-12.18.1/samples/blob_samples_client_side_encryption.py +285 -0
  93. azure-storage-blob-12.18.1/samples/blob_samples_client_side_encryption_keyvault.py +131 -0
  94. azure-storage-blob-12.18.1/samples/blob_samples_common.py +224 -0
  95. azure-storage-blob-12.18.1/samples/blob_samples_common_async.py +229 -0
  96. azure-storage-blob-12.18.1/samples/blob_samples_container_access_policy.py +83 -0
  97. azure-storage-blob-12.18.1/samples/blob_samples_container_access_policy_async.py +92 -0
  98. azure-storage-blob-12.18.1/samples/blob_samples_containers.py +248 -0
  99. azure-storage-blob-12.18.1/samples/blob_samples_containers_async.py +249 -0
  100. azure-storage-blob-12.18.1/samples/blob_samples_copy_blob.py +57 -0
  101. azure-storage-blob-12.18.1/samples/blob_samples_copy_blob_async.py +59 -0
  102. azure-storage-blob-12.18.1/samples/blob_samples_directory_interface.py +355 -0
  103. azure-storage-blob-12.18.1/samples/blob_samples_directory_interface_mimetype.py +229 -0
  104. azure-storage-blob-12.18.1/samples/blob_samples_enumerate_blobs.py +38 -0
  105. azure-storage-blob-12.18.1/samples/blob_samples_enumerate_blobs_async.py +38 -0
  106. azure-storage-blob-12.18.1/samples/blob_samples_hello_world.py +205 -0
  107. azure-storage-blob-12.18.1/samples/blob_samples_hello_world_async.py +215 -0
  108. azure-storage-blob-12.18.1/samples/blob_samples_network_activity_logging.py +64 -0
  109. azure-storage-blob-12.18.1/samples/blob_samples_proxy_configuration.py +63 -0
  110. azure-storage-blob-12.18.1/samples/blob_samples_query.py +60 -0
  111. azure-storage-blob-12.18.1/samples/blob_samples_service.py +165 -0
  112. azure-storage-blob-12.18.1/samples/blob_samples_service_async.py +188 -0
  113. azure-storage-blob-12.18.1/samples/blob_samples_walk_blob_hierarchy.py +85 -0
  114. azure-storage-blob-12.18.1/samples/blob_samples_walk_blob_hierarchy_async.py +90 -0
  115. {azure-storage-blob-2.1.0 → azure-storage-blob-12.18.1}/setup.cfg +0 -3
  116. azure-storage-blob-12.18.1/setup.py +90 -0
  117. azure-storage-blob-12.18.1/tests/avro/__init__.py +0 -0
  118. azure-storage-blob-12.18.1/tests/avro/test_avro.py +190 -0
  119. azure-storage-blob-12.18.1/tests/avro/test_avro_async.py +157 -0
  120. azure-storage-blob-12.18.1/tests/conftest.py +33 -0
  121. azure-storage-blob-12.18.1/tests/encryption_test_helper.py +108 -0
  122. azure-storage-blob-12.18.1/tests/fake_credentials.py +8 -0
  123. azure-storage-blob-12.18.1/tests/perfstress_tests/T1_legacy_tests/__init__.py +0 -0
  124. azure-storage-blob-12.18.1/tests/perfstress_tests/T1_legacy_tests/_test_base_legacy.py +82 -0
  125. azure-storage-blob-12.18.1/tests/perfstress_tests/T1_legacy_tests/download.py +34 -0
  126. azure-storage-blob-12.18.1/tests/perfstress_tests/T1_legacy_tests/list_blobs.py +29 -0
  127. azure-storage-blob-12.18.1/tests/perfstress_tests/T1_legacy_tests/upload.py +28 -0
  128. azure-storage-blob-12.18.1/tests/perfstress_tests/T1_legacy_tests/upload_block.py +28 -0
  129. azure-storage-blob-12.18.1/tests/perfstress_tests/T1_legacy_tests/upload_from_file.py +41 -0
  130. azure-storage-blob-12.18.1/tests/perfstress_tests/__init__.py +0 -0
  131. azure-storage-blob-12.18.1/tests/perfstress_tests/_test_base.py +86 -0
  132. azure-storage-blob-12.18.1/tests/perfstress_tests/download.py +36 -0
  133. azure-storage-blob-12.18.1/tests/perfstress_tests/key_wrapper.py +34 -0
  134. azure-storage-blob-12.18.1/tests/perfstress_tests/list_blobs.py +49 -0
  135. azure-storage-blob-12.18.1/tests/perfstress_tests/upload.py +32 -0
  136. azure-storage-blob-12.18.1/tests/perfstress_tests/upload_block.py +27 -0
  137. azure-storage-blob-12.18.1/tests/perfstress_tests/upload_from_file.py +37 -0
  138. azure-storage-blob-12.18.1/tests/settings/__init__.py +0 -0
  139. azure-storage-blob-12.18.1/tests/settings/settings_fake.py +30 -0
  140. azure-storage-blob-12.18.1/tests/settings/testcase.py +74 -0
  141. azure-storage-blob-12.18.1/tests/test_append_blob.py +1596 -0
  142. azure-storage-blob-12.18.1/tests/test_append_blob_async.py +1588 -0
  143. azure-storage-blob-12.18.1/tests/test_blob_access_conditions.py +3127 -0
  144. azure-storage-blob-12.18.1/tests/test_blob_access_conditions_async.py +3095 -0
  145. azure-storage-blob-12.18.1/tests/test_blob_api_version.py +186 -0
  146. azure-storage-blob-12.18.1/tests/test_blob_api_version_async.py +186 -0
  147. azure-storage-blob-12.18.1/tests/test_blob_client.py +734 -0
  148. azure-storage-blob-12.18.1/tests/test_blob_client_async.py +683 -0
  149. azure-storage-blob-12.18.1/tests/test_blob_encryption.py +894 -0
  150. azure-storage-blob-12.18.1/tests/test_blob_encryption_async.py +894 -0
  151. azure-storage-blob-12.18.1/tests/test_blob_encryption_v2.py +1089 -0
  152. azure-storage-blob-12.18.1/tests/test_blob_encryption_v2_async.py +1091 -0
  153. azure-storage-blob-12.18.1/tests/test_blob_retry.py +111 -0
  154. azure-storage-blob-12.18.1/tests/test_blob_retry_async.py +116 -0
  155. azure-storage-blob-12.18.1/tests/test_blob_service_properties.py +510 -0
  156. azure-storage-blob-12.18.1/tests/test_blob_service_properties_async.py +508 -0
  157. azure-storage-blob-12.18.1/tests/test_blob_service_stats.py +71 -0
  158. azure-storage-blob-12.18.1/tests/test_blob_service_stats_async.py +68 -0
  159. azure-storage-blob-12.18.1/tests/test_blob_storage_account.py +151 -0
  160. azure-storage-blob-12.18.1/tests/test_blob_storage_account_async.py +157 -0
  161. azure-storage-blob-12.18.1/tests/test_blob_tags.py +525 -0
  162. azure-storage-blob-12.18.1/tests/test_blob_tags_async.py +436 -0
  163. azure-storage-blob-12.18.1/tests/test_block_blob.py +1808 -0
  164. azure-storage-blob-12.18.1/tests/test_block_blob_async.py +1920 -0
  165. azure-storage-blob-12.18.1/tests/test_block_blob_sync_copy.py +306 -0
  166. azure-storage-blob-12.18.1/tests/test_block_blob_sync_copy_async.py +259 -0
  167. azure-storage-blob-12.18.1/tests/test_common_blob.py +3294 -0
  168. azure-storage-blob-12.18.1/tests/test_common_blob_async.py +3219 -0
  169. azure-storage-blob-12.18.1/tests/test_container.py +2699 -0
  170. azure-storage-blob-12.18.1/tests/test_container_async.py +2569 -0
  171. azure-storage-blob-12.18.1/tests/test_cpk.py +689 -0
  172. azure-storage-blob-12.18.1/tests/test_cpk_async.py +662 -0
  173. azure-storage-blob-12.18.1/tests/test_cpk_n.py +1094 -0
  174. azure-storage-blob-12.18.1/tests/test_cpk_n_async.py +1091 -0
  175. azure-storage-blob-12.18.1/tests/test_dictmixin.py +75 -0
  176. azure-storage-blob-12.18.1/tests/test_get_blob.py +1513 -0
  177. azure-storage-blob-12.18.1/tests/test_get_blob_async.py +1647 -0
  178. azure-storage-blob-12.18.1/tests/test_helpers.py +42 -0
  179. azure-storage-blob-12.18.1/tests/test_helpers_async.py +62 -0
  180. azure-storage-blob-12.18.1/tests/test_large_block_blob.py +385 -0
  181. azure-storage-blob-12.18.1/tests/test_large_block_blob_async.py +404 -0
  182. azure-storage-blob-12.18.1/tests/test_largest_block_blob.py +386 -0
  183. azure-storage-blob-12.18.1/tests/test_largest_block_blob_async.py +367 -0
  184. azure-storage-blob-12.18.1/tests/test_logging.py +183 -0
  185. azure-storage-blob-12.18.1/tests/test_logging_async.py +179 -0
  186. azure-storage-blob-12.18.1/tests/test_ors.py +103 -0
  187. azure-storage-blob-12.18.1/tests/test_ors_async.py +86 -0
  188. azure-storage-blob-12.18.1/tests/test_page_blob.py +2333 -0
  189. azure-storage-blob-12.18.1/tests/test_page_blob_async.py +2304 -0
  190. azure-storage-blob-12.18.1/tests/test_quick_query.py +1098 -0
  191. azure-storage-blob-12.18.1/tests/test_retry.py +553 -0
  192. azure-storage-blob-12.18.1/tests/test_retry_async.py +532 -0
  193. azure-storage-blob-12.18.1/tests/test_upload_chunking.py +107 -0
  194. azure-storage-blob-2.1.0/MANIFEST.in +0 -4
  195. azure-storage-blob-2.1.0/PKG-INFO +0 -253
  196. azure-storage-blob-2.1.0/README.rst +0 -232
  197. azure-storage-blob-2.1.0/azure/storage/blob/__init__.py +0 -37
  198. azure-storage-blob-2.1.0/azure/storage/blob/_deserialization.py +0 -650
  199. azure-storage-blob-2.1.0/azure/storage/blob/_download_chunking.py +0 -181
  200. azure-storage-blob-2.1.0/azure/storage/blob/_encryption.py +0 -187
  201. azure-storage-blob-2.1.0/azure/storage/blob/_error.py +0 -29
  202. azure-storage-blob-2.1.0/azure/storage/blob/_serialization.py +0 -304
  203. azure-storage-blob-2.1.0/azure/storage/blob/_upload_chunking.py +0 -502
  204. azure-storage-blob-2.1.0/azure/storage/blob/appendblobservice.py +0 -823
  205. azure-storage-blob-2.1.0/azure/storage/blob/baseblobservice.py +0 -3569
  206. azure-storage-blob-2.1.0/azure/storage/blob/blockblobservice.py +0 -1352
  207. azure-storage-blob-2.1.0/azure/storage/blob/models.py +0 -977
  208. azure-storage-blob-2.1.0/azure/storage/blob/pageblobservice.py +0 -1568
  209. azure-storage-blob-2.1.0/azure/storage/blob/sharedaccesssignature.py +0 -275
  210. azure-storage-blob-2.1.0/azure_storage_blob.egg-info/PKG-INFO +0 -253
  211. azure-storage-blob-2.1.0/azure_storage_blob.egg-info/SOURCES.txt +0 -27
  212. azure-storage-blob-2.1.0/azure_storage_blob.egg-info/requires.txt +0 -5
  213. azure-storage-blob-2.1.0/setup.py +0 -80
  214. {azure-storage-blob-2.1.0 → azure-storage-blob-12.18.1}/azure_storage_blob.egg-info/dependency_links.txt +0 -0
  215. {azure-storage-blob-2.1.0 → azure-storage-blob-12.18.1}/azure_storage_blob.egg-info/not-zip-safe +0 -0
  216. {azure-storage-blob-2.1.0 → azure-storage-blob-12.18.1}/azure_storage_blob.egg-info/top_level.txt +0 -0
@@ -0,0 +1,638 @@
1
+ # Release History
2
+
3
+ ## 12.18.1 (2023-09-13)
4
+
5
+ ### Bugs Fixed
6
+ - Fixed breaking `KeyError: 'sdk_moniker'` in `create_configuration`.
7
+ NOTE: This is not an exported method and therefore should not be imported/called directly.
8
+
9
+ ## 12.18.0 (2023-09-12)
10
+
11
+ ### Features Added
12
+ - Stable release of features from 12.18.0b1
13
+
14
+ ## 12.18.0b1 (2023-08-08)
15
+
16
+ ### Features Added
17
+ - Added support for service versions 2023-05-03 and 2023-08-03.
18
+ - Added `version_id` as a client constructor parameter to `BlobClient`. This change makes `BlobClient`s version-aware, such that
19
+ all APIs that accept `version_id` will operate on the version ID provided during client construction by default.
20
+ - Added optional keyword `version_id` to `get_blob_client` APIs which, if provided, will result in a version-aware `BlobClient` in which
21
+ all APIs that accept `version_id` will operate on the version ID provided to the `get_blob_client` API call by default.
22
+
23
+ ## 12.17.0 (2023-07-11)
24
+
25
+ ### Features Added
26
+ - Stable release of features from 12.17.0b1
27
+
28
+ ## 12.17.0b1 (2023-05-30)
29
+
30
+ ### Features Added
31
+ - Added support for service version 2023-01-03.
32
+ - Content length limit increased from 4 MiB to 100 MiB for `append_block` and `append_block_from_url` APIs and their async equivalents.
33
+
34
+ ## 12.16.0 (2023-04-12)
35
+
36
+ ### Features Added
37
+ - Stable release of features from 12.16.0b1
38
+
39
+ ## 12.16.0b1 (2023-03-28)
40
+
41
+ ### Features Added
42
+ - Added support for service version 2022-11-02.
43
+
44
+ ## 12.15.0 (2023-02-22)
45
+
46
+ ### Features Added
47
+ - Stable release of features from 12.15.0b1
48
+ - The `download_blob` API now returns `creation_time` on the download response.
49
+
50
+ ## 12.15.0b1 (2023-02-02)
51
+
52
+ ### Features Added
53
+ - Added support for service version 2021-12-02.
54
+ - Added support for new blob tier, `Cold`.
55
+ - Added support for `AsyncIterable` as data type for async blob upload.
56
+
57
+ ### Bugs Fixed
58
+ - Changed how async streams are detected on async `upload_blob` to increase compatiblity with different types.
59
+
60
+ ### Other Changes
61
+ - Removed `msrest` dependency.
62
+ - Added `typing-extensions>=4.0.1` as a dependency.
63
+ - Added `isodate>=0.6.1` as a dependency.
64
+ - Added extra dependency `aio` for installing optional async dependencies. Use `pip install azure-storage-blob[aio]` to install.
65
+
66
+ ## 12.14.1 (2022-10-18)
67
+
68
+ ### Bugs Fixed
69
+ - Fixed possible `ValueError` for invalid content range that gets raised when downloading empty blobs through Azurite.
70
+
71
+ ## 12.14.0 (2022-10-11)
72
+
73
+ ### Features Added
74
+ - Stable release of features from 12.14.0b1 and 12.14.0b2.
75
+
76
+ ### Bugs Fixed
77
+ - Fixed an issue where calling `download_blob` with an invalid base64-encoded account key would cause an
78
+ `AttributeError` rather than the proper `AzureSigningError`.
79
+
80
+ ### Other Changes
81
+ - Changed the default value for `read_timeout` to 60 seconds for all clients.
82
+
83
+ ## 12.14.0b2 (2022-08-30)
84
+
85
+ ### Features Added
86
+ - Added a new API, `list_blob_names`, to `ContainerClient` that lists only the names of the blobs in the respective
87
+ container. This API is significantly faster than the traditional `list_blobs` and can be used if only the blob names
88
+ are desired. It does not return any additional properties or metadata for the blobs.
89
+
90
+ ## 12.14.0b1 (2022-08-23)
91
+
92
+ This version and all future versions will require Python 3.7+. Python 3.6 is no longer supported.
93
+
94
+ ### Features Added
95
+ - Added support for `AzureNamedKeyCredential` as a valid `credential` type.
96
+ - Added standard `read` method to `StorageStreamDownloader`.
97
+ - Added support for async streams (classes with an async `read` method) to async `upload_blob`.
98
+
99
+ ### Bugs Fixed
100
+ - Removed dead retry meachism from async `azure.storage.blob.aio.StorageStreamDownloader`.
101
+ - Updated exception catching of `azure.storage.blob.StorageStreamDownloader`'s retry mechanism.
102
+ - Adjusted type hints for `upload_blob` and `StorageStreamDownloader.readall`.
103
+ - Fixed a bug where uploading an empty blob via `upload_blob` would fail with `validate_content=True`.
104
+
105
+ ## 12.13.1 (2022-08-04)
106
+
107
+ ### Bugs Fixed
108
+ - Fixed two rare issues with ranged blob download when using client-side encryption V1 or V2.
109
+
110
+ ## 12.13.0 (2022-07-07)
111
+
112
+ ### Bugs Fixed
113
+ - Stable release of features from 12.13.0b1.
114
+ - Added support for deleting versions in `delete_blobs` by supplying `version_id`.
115
+
116
+ ## 12.13.0b1 (2022-06-15)
117
+
118
+ ### Features Added
119
+ - Added support for service version 2021-08-06.
120
+ - Added a new version of client-side encryption for blobs (version 2.0) which utilizes AES-GCM-256 encryption.
121
+ If you are currently using client-side encryption, it is **highly recommended** to switch to a form of server-side
122
+ encryption (Customer-Provided Key, Encryption Scope, etc.) or version 2.0 of client-side encryption. The encryption
123
+ version can be specified on any client constructor via the `encryption_version` keyword (`encryption_version='2.0'`).
124
+
125
+ ## 12.12.0 (2022-05-09)
126
+
127
+ ### Features Added
128
+ - Stable release of features from 12.12.0b1.
129
+ - Added support for progress tracking to `upload_blob()` and `download_blob()` via a new optional callback,`progress_hook`.
130
+
131
+ ### Bugs Fixed
132
+ - Fixed a bug in `BlobClient.from_blob_url()` such that users will receive a more helpful error
133
+ message if they pass an incorrect URL without a full `/container/blob` path.
134
+ - Fixed a bug, introduced in the previous beta release, that caused Authentication errors when attempting to use
135
+ an Account SAS with certain service level operations.
136
+
137
+ ## 12.12.0b1 (2022-04-14)
138
+
139
+ ### Features Added
140
+ - Added support for service version 2021-06-08.
141
+ - Added a new paginated method for listing page ranges, `list_page_ranges()`. This replaces `get_page_ranges()` which has been deprecated.
142
+ - Added support for copying source blob tags with `start_copy_from_url()` by specifying `"COPY"` for the `tags` keyword.
143
+
144
+ ## 12.11.0 (2022-03-29)
145
+
146
+ **Warning** This release involves a bug fix that may change the behavior for some users. In previous versions,
147
+ the `tag` parameter on`BlobSasPermissions` defaulted to `True` meaning a Blob SAS URL would include the `t` permission
148
+ by default. This was not the intended behavior. This release adjusts `BlobSasPermission` so the `tag` permission will
149
+ default to `False`, like all other permissions.
150
+
151
+ ### Bugs Fixed
152
+ - Fixed a bug in `BlobSasPermissions` where the `tag` permission had a default value of `True` and
153
+ therefore was being added to the SAS token by default.
154
+
155
+ ## 12.10.0 (2022-03-08)
156
+
157
+ This version and all future versions will require Python 3.6+. Python 2.7 is no longer supported.
158
+
159
+ ### Stable release of preview features
160
+ - Added support for service version 2021-02-12, 2021-04-10.
161
+ - Account level SAS tokens now supports two new permissions:
162
+ - `permanent_delete`
163
+ - `set_immutability_policy`
164
+ - Encryption Scope is now supported for Sync Blob Copy (`copy_from_url()`).
165
+ - Encryption Scope is now supported as a SAS permission.
166
+ - Added support for blob names containing invalid XML characters.
167
+ Previously \uFFFE and \uFFFF would fail if present in blob name.
168
+ - Added support for listing system containers with get_blob_containers().
169
+ - Added support for `find_blobs_by_tags()` on a container.
170
+ - Added support for `Find (f)` container SAS permission.
171
+
172
+ ### Bugs Fixed
173
+ - Added all missing Service SAS permissions.
174
+ - Fixed a bug that prevented `upload_blob()` from working with an OS pipe
175
+ reader stream on Linux. (#23131)
176
+
177
+ ## 12.10.0b4 (2022-02-24)
178
+
179
+ ### Features Added
180
+ - Updated clients to support both SAS and OAuth together.
181
+ - Updated OAuth implementation to use the AAD scope returned in a Bearer challenge.
182
+
183
+ ### Bugs Fixed
184
+ - Addressed a few `mypy` typing hint errors.
185
+
186
+ ## 12.10.0b3 (2022-02-08)
187
+
188
+ This version and all future versions will require Python 3.6+. Python 2.7 is no longer supported.
189
+
190
+ ### Features Added
191
+ - Added support for service version 2021-04-10.
192
+ - Added support for `find_blobs_by_tags()` on a container.
193
+ - Added support for `Find (f)` container SAS permission.
194
+
195
+ ### Bugs Fixed
196
+ - Update `azure-core` dependency to avoid inconsistent dependencies from being installed.
197
+
198
+ ## 12.10.0b2 (2021-12-13)
199
+
200
+ ### Features Added
201
+ - Added support for service version 2021-02-12
202
+ - Added support for blob names container invalid XML characters. Previously \uFFFE and \uFFFF would fail if present in blob name.
203
+ - Added support for listing system containers with get_blob_containers().
204
+
205
+ ### Bugs Fixed
206
+ - BlobPrefix for aio operations is now exposed to be imported, previously it was private.
207
+
208
+ ## 12.10.0b1 (2021-11-08)
209
+ **New Features**
210
+ - Account level SAS tokens now support two new permissions:
211
+ - `permanent_delete`
212
+ - Encryption Scope is now supported for Sync Blob Copy (`copy_from_url()`)
213
+ - Encryption Scope is now supported as a SAS permission
214
+
215
+ **Fixes**
216
+ - Blob Client Typing annotation issues have been resolved, specifically `invalid type inference` issues (#19906)
217
+ - Duplicate type signature issue has been resolved (#19739)
218
+
219
+ ## 12.9.0 (2021-09-15)
220
+ **Stable release of preview features**
221
+ - Added support for service version 2020-10-02 (STG78)
222
+ - Added support for object level immutability policy with versioning (Version Level WORM).
223
+ - Added support for listing deleted root blobs that have versions.
224
+ - Added OAuth support for sync copy blob source.
225
+
226
+ ## 12.9.0b1 (2021-07-27)
227
+ **New Features**
228
+ - Added support for object level immutability policy with versioning (Version Level WORM).
229
+ - Added support for listing deleted root blobs that have versions.
230
+ - Added OAuth support for sync copy blob source.
231
+
232
+ **Fixes**
233
+ - Fixed a bug for get_block_list (#16314)
234
+ - Ensured that download fails if blob modified mid download
235
+ - Enabled exists() for CPK encrypted blobs (#18041)
236
+
237
+ **Notes**
238
+ - Deprecated new_name in for undelete container operation
239
+
240
+ ## 12.8.1 (2021-04-20)
241
+ **Fixes**
242
+ - Fixed retry on large block upload
243
+ - Make `AccountName`, `AccountKey` etc. in conn_str case insensitive
244
+ - Fixed downloader.chunks() return chunks in different size (#9419, #15648)
245
+ - Enabled `exists()` for CPK encrypted blobs (#18041)
246
+ - Fixed the ability to upload from a generator (#17418)
247
+ - Fixed unclosed `ThreadPoolExecutor` (#8955)
248
+ - Fixed retries for blob download streams (#18164, #17974, #10572 (comment))
249
+ - Added chunk streaming docstrings and samples (#17149, #11009)
250
+ - Added retry for blob download (#17974, #10572)
251
+ - Fixed encryption algorithm hardcoded setting (#17835)
252
+
253
+ ## 12.8.0 (2021-03-01)
254
+ **Stable release of preview features**
255
+ - Added `ContainerClient.exists()` method
256
+ - Added container SAS support for blob batch operations
257
+
258
+ **Fixes**
259
+ - Fixed `delete_blob()` method signature (#15891)
260
+ - Fixed Content-MD5 throwing when passed (#15919)
261
+
262
+ ## 12.8.0b1 (2021-02-10)
263
+ **New Features**
264
+ - Added `ContainerClient.exists()` method
265
+ - Added container SAS support for blob batch operations
266
+
267
+ ## 12.7.1 (2021-01-20)
268
+ **Fixes**
269
+ - Fixed msrest dependency issue (#16250)
270
+
271
+ ## 12.7.0 (2021-01-13)
272
+ **Stable release of preview features**
273
+ - Added `upload_blob_from_url` api on `BlobClient`.
274
+ - Added support for leasing blob when get/set tags, listing all tags when find blobs by tags.
275
+ - Added support for `AzureSasCredential` to allow SAS rotation in long living clients.
276
+
277
+ **Fixes**
278
+ - Fixed url parsing for blob emulator/localhost (#15882)
279
+
280
+ ## 12.7.0b1 (2020-12-07)
281
+ **New features**
282
+ - Added `upload_blob_from_url` api on `BlobClient`
283
+ - Added support for leasing blob when get/set tags, listing all tags when find blobs by tags.
284
+
285
+
286
+ ## 12.6.0 (2020-11-10)
287
+ **Stable release of preview features**
288
+ - Preview feature `ArrowDialect` as output format of `query_blob`
289
+ - Preview feature `undelete_container` on BlobServiceClient.
290
+ - Preview feature Last Access Time.
291
+
292
+ **Fixes**
293
+ - Fixed the expired Authorization token problem during retry (#14701, #14067)
294
+ - Catch exceptions thrown by async download (#14319)
295
+
296
+ **Notes**
297
+ - Updated dependency `azure-core` from azure-core<2.0.0,>=1.6.0 to azure-core<2.0.0,>=1.9.0 to get continuation_token attr on AzureError.
298
+
299
+ ## 12.6.0b1 (2020-10-02)
300
+ **New features**
301
+ - Added support for Arrow format (`ArrowType`) output serialization using `quick_query()`.
302
+ - Added support for undeleting a container.
303
+ - Added support for `LastAccessTime` property on a blob, which could be the last time a blob was written or read.
304
+
305
+
306
+ ## 12.5.0 (2020-09-10)
307
+ **New features**
308
+ - Added support for checking if a blob exists using the `exists` method (#13221).
309
+
310
+ **Fixes**
311
+ - Fixed source URLs special characters issue. Users can now have special characters in their source URLs for `copy_blob_from_url`, `upload_blob_from_url` etc (#13275).
312
+ - Fixed authorization header on asyncio requests containing url-encoded-able characters (#11028).
313
+ - Fixed SAS credentials URL malformation when using local Azurite container (#11941).
314
+ - Fixed issue with permission string causing an authentication failure (#13099).
315
+ - Support for returning snapshot value in `get_blob_properties` response (#13287).
316
+
317
+ ## 12.4.0 (2020-08-12)
318
+ **New features**
319
+ - Added support for Object Replication Service on `list_blobs` and `get_blob_properties`.
320
+ - Added more support for blob tags. Added `if_tags_match_condition` that allow a user to specify a SQL statement for the blob's tags to satisfy.
321
+ - Added support for setting and getting the `default_index_document_path` of `StaticWebsite` property on the service client.
322
+ - Added `rehydrate_priority` to BlobProperties.
323
+ - Added support to seal an append blob. Added `test_seal_append_blob`. Added ability to specify `seal_destination_blob` on `start_copy_from_url`. `is_append_blob_sealed` property returned on get_blob_properties/download_blob/list_blobs.
324
+ - Added support to set tier on a snapshot or version.
325
+
326
+ **Fixes**
327
+ - Fixed the bug when parsing blob url with '/' in blob name (#12563, #12568).
328
+ - Support batch delete empty blob list (#12778, #12779).
329
+ - Fixed `blob_samples_query` bug.
330
+ - Fixed empty etag in acquire_blob response (#8490).
331
+
332
+ ## 12.4.0b1 (2020-07-07)
333
+ **New features**
334
+ - Added `query_blob` API to enable users to select/project on block blob or block blob snapshot data by providing simple query expressions.
335
+ - Added blob versioning feature, so that every time there is a blob override the `version_id` will be updated automatically and returned in the response, the `version_id` could be used later to refer to the overwritten blob.
336
+ - Added `set_blob_tags`,`get_blob_tags` and `find_blobs_by_tags` so that user can get blobs based on blob tags.
337
+ - Block size is increased to 4GB at maximum, max single put size is increased to 5GB.
338
+ - For replication enabled account, users can get replication policies when get blob properties.
339
+
340
+ ## 12.3.2
341
+ **Fixes**
342
+ - Fixed issue where batch requests could not be combined with SAS (#9534)
343
+ - Batch requests now support applying parameters to individual blobs within the request via passing in a dictionary.
344
+ - Metadata cannot have leading space (#11457)
345
+ - Improve the performance of upload when using max_concurrency
346
+
347
+ **Notes**
348
+ - Updated dependency from azure-core<2.0.0,>=1.2.2 to azure-core<2.0.0,>=1.6.0
349
+
350
+ ## 12.3.1 (2020-04-29)
351
+
352
+ **Fixes**
353
+ - Fixed issue where batch requests could not be combined with token credentials (#9534)
354
+ - Skip '/' in url encoding.
355
+
356
+
357
+ ## 12.3.0 (2020-03-10)
358
+
359
+ **New features**
360
+
361
+ - `stage_block` now propagates the response from the service.
362
+
363
+ **Fixes**
364
+ - Fixed a bug where a new transport is being passed in the `get_blob_client` method instead
365
+ of using the existing one in the `ContainerClient`.
366
+
367
+ **Notes**
368
+ - The `StorageUserAgentPolicy` is now replaced with the `UserAgentPolicy` from azure-core. With this, the custom user agents are now added as a prefix instead of being appended.
369
+
370
+
371
+ ## 12.2.0
372
+
373
+ **New features**
374
+ - Added support for the 2019-07-07 service version, and added `api_version` parameter to clients.
375
+ - Added support for encryption scopes that that could be used to encrypt blob content.
376
+ - Added `get_page_range_diff_for_managed_disk` API which returns the list of valid page ranges diff between a snapshot and managed disk or another snapshot.
377
+
378
+ **Fixes**
379
+ - Responses are always decoded as UTF8
380
+
381
+ ## 12.1.0 (2019-12-04)
382
+
383
+ **New features**
384
+ - Added `download_blob` method to the `container_client`.
385
+ - All the clients now have a `close()` method to close the sockets opened by the client when using without a context manager.
386
+
387
+ **Fixes and improvements**
388
+ - Fixes a bug where determining length breaks while uploading a blob when provided with an invalid fileno.
389
+ - Fix metadata not being included in `commit_block_list` operation.
390
+
391
+
392
+ ## 12.0.0 (2019-10-31)
393
+
394
+ **Breaking changes**
395
+
396
+ - `set_container_access_policy` has required parameter `signed_identifiers`.
397
+ - `NoRetry` policy has been removed. Use keyword argument `retry_total=0` for no retries.
398
+ - `StorageStreamDownloader` is no longer iterable. To iterate over the blob data stream, use `StorageStreamDownloader.chunks`.
399
+ - The public attributes of `StorageStreamDownloader` have been limited to:
400
+ - `name` (str): The name of the blob.
401
+ - `container` (str): The container the blob is being downloaded from.
402
+ - `properties` (`BlobProperties`): The properties of the blob.
403
+ - `size` (int): The size of the download. Either the total blob size, or the length of a subsection if sepcified. Previously called `download_size`.
404
+ - `StorageStreamDownloader` now has new functions:
405
+ - `readall()`: Reads the complete download stream, returning bytes. This replaces the functions `content_as_bytes` and `content_as_text` which have been deprecated.
406
+ - `readinto(stream)`: Download the complete stream into the supplied writable stream, returning the number of bytes written. This replaces the function `download_to_stream` which has been deprecated.
407
+ - Module level functions `upload_blob_to_url` and `download_blob_from_url` functions options are now keyword only:
408
+ - `overwrite`
409
+ - `max_concurrency`
410
+ - `encoding`
411
+ - Removed types that were accidentally exposed from two modules. Only `BlobServiceClient`, `ContainerClient`,
412
+ `BlobClient` and `BlobLeaseClient` should be imported from azure.storage.blob.aio
413
+ - `Logging` has been renamed to `BlobAnalyticsLogging`.
414
+ - Client and model files have been made internal. Users should import from the top level modules `azure.storage.blob` and `azure.storage.blob.aio` only.
415
+ - All operations that take Etag conditional parameters (`if_match` and `if_none_match`) now take explicit `etag` and `match_condition` parameters, where `etag` is the Etag value, and `match_condition` is an instance of `azure.core.MatchConditions`.
416
+ - The `generate_shared_access_signature` methods on each of `BlobServiceClient`, `ContainerClient` and `BlobClient` have been replaced by module level functions `generate_account_sas`, `generate_container_sas` and `generate_blob_sas`.
417
+ - The batch APIs now have an additional keyword only argument `raise_on_any_failure` which defaults to True. This will raise an error even if there's a partial batch failure.
418
+ - `LeaseClient` has been renamed to `BlobLeaseClient`.
419
+ - `get_service_stats` now returns a dict
420
+ - `get_service_properties` now returns a dict with keys consistent to `set_service_properties`
421
+
422
+ **New features**
423
+
424
+ - Added async module-level `upload_blob_to_url` and `download_blob_from_url` functions.
425
+ - `ResourceTypes`, and `Services` now have method `from_string` which takes parameters as a string.
426
+
427
+ ## 12.0.0b4 (2019-10-08)
428
+
429
+ **Breaking changes**
430
+
431
+ - Permission models.
432
+ - `AccountPermissions`, `BlobPermissions` and `ContainerPermissions` have been renamed to
433
+ `AccountSasPermissions`, `BlobSasPermissions` and `ContainerSasPermissions` respectively.
434
+ - enum-like list parameters have been removed from all three of them.
435
+ - `__add__` and `__or__` methods are removed.
436
+ - `max_connections` is now renamed to `max_concurrency`.
437
+ - `ContainerClient` now accepts only `account_url` with a mandatory string param `container_name`.
438
+ To use a container_url, the method `from_container_url` must be used.
439
+ - `BlobClient` now accepts only `account_url` with mandatory string params `container_name` and
440
+ `blob_name`. To use a blob_url, the method `from_blob_url` must be used.
441
+ - Some parameters have become keyword only, rather than positional. Some examples include:
442
+ - `loop`
443
+ - `max_concurrency`
444
+ - `validate_content`
445
+ - `timeout` etc.
446
+ - APIs now take in `offset` and `length` instead of `range_start` and `range_end` consistently.
447
+ `length` is the number of bytes to take in starting from the `offset`. The APIs that have been
448
+ changed include:
449
+ - `get_page_ranges`
450
+ - `upload_page`
451
+ - `upload_pages_from_url`
452
+ - `clear_page`
453
+ - `append_block_from_url`
454
+ - `block_id` is not optional in `BlobBlock` model.
455
+
456
+ **New features**
457
+
458
+ - Add support for delete_blobs API to ContainerClient (Python 3 only)
459
+ - Add support for set_standard_blob_tier_blobs to ContainerClient (Python 3 only)
460
+ - Add support for set_premium_page_blob_tier_blobs to ContainerClient (Python 3 only)
461
+ - Added support to set rehydrate blob priority for Block Blob, including Set Standard Blob Tier/Copy Blob APIs
462
+ - Added blob tier support for Block Blob, including Upload Blob/Commit Block List/Copy Blob APIs.
463
+ - `AccountSasPermissions`, `BlobSasPermissions`, `ContainerSasPermissions` now have method `from_string`
464
+ which takes parameters as a string.
465
+
466
+ **Fixes and improvements**
467
+ - Downloading page blobs now take advantage of their sparseness.
468
+ - The `length` param in `download_blob` now takes the number of bytes to take in starting from the `offset`
469
+ instead of a harde set end value.
470
+
471
+ **Dependency updates**
472
+ - Adopted [azure-core](https://pypi.org/project/azure-core/) 1.0.0b4
473
+ - If you later want to revert to previous versions of azure-storage-blob, or another Azure SDK
474
+ library requiring azure-core 1.0.0b1 or azure-core 1.0.0b2, you must explicitly install
475
+ the specific version of azure-core as well. For example:
476
+
477
+ `pip install azure-core==1.0.0b2 azure-storage-blob==12.0.0b2`
478
+
479
+ ## 12.0.0b3 (2019-09-10)
480
+
481
+ **New features**
482
+ - Added SAS support for snapshot and identity.
483
+ - Distributed tracing framework OpenCensus is now supported.
484
+ - Added support for append_block_from_url API for append blobs.
485
+ - Added support for upload_pages_from_url API for page blobs.
486
+ - Added support for client provided encryption key to numerous APIs.
487
+
488
+ **Dependency updates**
489
+ - Adopted [azure-core](https://pypi.org/project/azure-core/) 1.0.0b3
490
+ - If you later want to revert to previous versions of azure-storage-blob, or another Azure SDK
491
+ library requiring azure-core 1.0.0b1 or azure-core 1.0.0b2, you must explicitly install
492
+ the specific version of azure-core as well. For example:
493
+
494
+ `pip install azure-core==1.0.0b2 azure-storage-blob==12.0.0b2`
495
+
496
+ **Fixes and improvements**
497
+ - Fix where content-type was being added in the request when not mentioned explicitly.
498
+
499
+
500
+ ## 12.0.0b2 (2019-08-06)
501
+
502
+ **Breaking changes**
503
+ - Renamed `copy_blob_from_url` to `start_copy_from_url` and changed behaviour to return a dictionary of copy properties rather than a polling object. Status of the copy operation can be retrieved with the `get_blob_properties` operation.
504
+ - Added `abort_copy` operation to the `BlobClient` class. This replaces the previous abort operation on the copy status polling operation.
505
+ - The behavior of listing operations has been modified:
506
+ - The previous `marker` parameter has been removed.
507
+ - The iterable response object now supports a `by_page` function that will return a secondary iterator of batches of results. This function supports a `continuation_token` parameter to replace the previous `marker` parameter.
508
+ - Some parameters have become keyword only, rather than positional. Some examples include:
509
+ - `timeout`
510
+ - `lease`
511
+ - `encoding`
512
+ - Modification conditions, e.g. `if_modified_since`, `if_match` , `maxsize_condition`, etc
513
+
514
+ **New features**
515
+ - Added async APIs to subnamespace `azure.storage.blob.aio`.
516
+ - Distributed tracing framework OpenCensus is now supported.
517
+
518
+ **Dependency updates**
519
+ - Adopted [azure-core](https://pypi.org/project/azure-core/) 1.0.0b2
520
+ - If you later want to revert to azure-storage-blob 12.0.0b1, or another Azure SDK
521
+ library requiring azure-core 1.0.0b1, you must explicitly install azure-core
522
+ 1.0.0b1 as well. For example:
523
+
524
+ `pip install azure-core==1.0.0b1 azure-storage-blob==12.0.0b1`
525
+
526
+ **Fixes and improvements**
527
+ - Fix for SAS URL encoding (#6500)
528
+ - General refactor of duplicate and shared code.
529
+
530
+
531
+ ## 12.0.0b1 (2019-07-02)
532
+
533
+ Version 12.0.0b1 is the first preview of our efforts to create a user-friendly and Pythonic client library for Azure Storage Blobs. For more information about this, and preview releases of other Azure SDK libraries, please visit
534
+ https://aka.ms/azure-sdk-preview1-python.
535
+
536
+ **Breaking changes: New API design**
537
+ - Operations are now scoped to a particular client:
538
+ - `BlobServiceClient`: This client handles account-level operations. This includes managing service properties and listing the containers within an account.
539
+ - `ContainerClient`: The client handles operations for a particular container. This includes creating or deleting that container, as well as listing the blobs within that container and managing properties and metadata.
540
+ - `BlobClient`: The client handles operations for a particular blob. This includes creating or deleting that blob, as well as upload and download data and managing properties.
541
+ This BlobClient handles all blob types (block, page and append). Where operations can behave differently according to type (i.e. `upload_blob`) the default behaviour will be block blobs unless otherwise specified.
542
+ - `LeaseClient`: Handles all lease operations for both containers and blobs.
543
+
544
+ These clients can be accessed by navigating down the client hierarchy, or instantiated directly using URLs to the resource (account, container or blob).
545
+ For full details on the new API, please see the [reference documentation](https://azure.github.io/azure-sdk-for-python/storage.html#azure-storage-blob).
546
+ - Copy blob operations now return a polling object that can be used to check the status of the operation, as well as abort the operation.
547
+ - New module level operations for simple upload and download using a blob URL.
548
+ - Download operations now return a streaming object that can download data in multiple ways:
549
+ - Iteration: The streamer is an iterable object that will download and yield the content in chunks. Only supports single threaded download.
550
+ - `content_as_bytes`: Return the entire blob content as bytes. Blocking operation that supports multi-threaded download.
551
+ - `content_as_text`: Return the entire blob content as decoded text. Blocking operation that supports multi-threaded download.
552
+ - `download_to_stream`: Download the entire content to an open stream handle (e.g. an open file). Supports multi-threaded download.
553
+ - New underlying REST pipeline implementation, based on the new `azure-core` library.
554
+ - 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.
555
+ - Authentication using `azure-identity` credentials
556
+ - see the
557
+ [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md)
558
+ for more information
559
+ - New error hierarchy:
560
+ - All service errors will now use the base type: `azure.core.exceptions.HttpResponseError`
561
+ - The are a couple of specific exception types derived from this base type for common error scenarios:
562
+ - `ResourceNotFoundError`: The resource (e.g. queue, message) could not be found. Commonly a 404 status code.
563
+ - `ResourceExistsError`: A resource conflict - commonly caused when attempting to create a resource that already exists.
564
+ - `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.
565
+ - `ClientAuthenticationError`: Authentication failed.
566
+ - Operation `set_blob_properties` has been renamed to `set_http_headers`.
567
+ - Operations `get_blob_to_<output>` have been replaced with `download_blob`. See above for download output options.
568
+ - Operations `create_blob_from_<input>` have been replace with `upload_blob`.
569
+ - Operation `create_blob` has been renamed to separate `create_page_blob` and `create_append_blob`.
570
+ - Operations `get_container_acl` and `set_container_acl` have been renamed to `get_container_access_policy` and `set_container_access_policy`.
571
+ - Operation `snapshot_blob` has been renamed to `create_snapshot`.
572
+ - Operation `copy_blob` has been renamed to `copy_blob_from_url`.
573
+ - Operations `put_block` and `put_block_from_url` have been renamed to `stage_block` and `stage_block_from_url`.
574
+ - Operation `put_block_list` has been renamed to `commit_block_list`.
575
+ - No longer have specific operations for `get_metadata` - use `get_properties` instead.
576
+ - No longer have specific operations for `exists` - use `get_properties` instead.
577
+ - Operation `incremental_copy_blob` has been replaced by an optional boolean flag in the `copy_blob_from_url` operation.
578
+ - Operation `update_page` has been renamed to `upload_page`.
579
+ - Operation `get_page_ranges_diff` has been replaced by an optional str flag in the `get_page_ranges` operation.
580
+
581
+ ## 2.0.1
582
+
583
+ - Updated dependency on azure-storage-common.
584
+
585
+ ## 2.0.0
586
+
587
+ - Support for 2018-11-09 REST version. Please see our REST API documentation and blog for information about the related added features.
588
+ - Added support for append block from URL(synchronously) for append blobs.
589
+ - Added support for update page from URL(synchronously) for page blobs.
590
+ - Added support for generating and using blob snapshot SAS tokens.
591
+ - Added support for generating user delegation SAS tokens.
592
+
593
+ ## 1.5.0
594
+
595
+ - Added new method list_blob_names to efficiently list only blob names in an efficient way.
596
+
597
+ ## 1.4.0
598
+
599
+ - azure-storage-nspkg is not installed anymore on Python 3 (PEP420-based namespace package)
600
+ - copy_blob method added to BlockBlobService to enable support for deep sync copy.
601
+
602
+ ## 1.3.1
603
+
604
+ - Fixed design flaw where get_blob_to_* methods buffer entire blob when max_connections is set to 1.
605
+ - Added support for access conditions on append_blob_from_* methods.
606
+
607
+ ## 1.3.0
608
+
609
+ - Support for 2018-03-28 REST version. Please see our REST API documentation and blog for information about the related added features.
610
+ - Added support for setting static website service properties.
611
+ - Added support for getting account information, such as SKU name and account kind.
612
+ - Added support for put block from URL(synchronously).
613
+
614
+ ## 1.2.0rc1
615
+
616
+ - Support for 2017-11-09 REST version. Please see our REST API documentation and blog for information about the related added features.
617
+ - Support for write-once read-many containers.
618
+ - Added support for OAuth authentication for HTTPS requests(Please note that this feature is available in preview).
619
+
620
+ ## 1.1.0
621
+
622
+ - Support for 2017-07-29 REST version. Please see our REST API documentation and blogs for information about the related added features.
623
+ - Added support for soft delete feature. If a delete retention policy is enabled through the set service properties API, then blobs or snapshots could be deleted softly and retained for a specified number of days, before being permanently removed by garbage collection.
624
+ - Error message now contains the ErrorCode from the x-ms-error-code header value.
625
+
626
+ ## 1.0.0
627
+
628
+ - The package has switched from Apache 2.0 to the MIT license.
629
+ - Fixed bug where get_blob_to_* cannot get a single byte when start_range and end_range are both equal to 0.
630
+ - Optimized page blob upload for create_blob_from_* methods, by skipping the empty chunks.
631
+ - Added convenient method to generate container url (make_container_url).
632
+ - Metadata keys are now case-preserving when fetched from the service. Previously they were made lower-case by the library.
633
+
634
+ ## 0.37.1
635
+
636
+ - Enabling MD5 validation no longer uses the memory-efficient algorithm for large block blobs, since computing the MD5 hash requires reading the entire block into memory.
637
+ - Fixed a bug in the _SubStream class which was at risk of causing data corruption when using the memory-efficient algorithm for large block blobs.
638
+ - Support for AccessTierChangeTime to get the last time a tier was modified on an individual blob.
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ Copyright (c) Microsoft Corporation.
2
2
 
3
- Copyright (c) 2017 Microsoft
3
+ MIT License
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -12,7 +12,7 @@ furnished to do so, subject to the following conditions:
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
@@ -0,0 +1,7 @@
1
+ include *.md
2
+ include azure/__init__.py
3
+ include azure/storage/__init__.py
4
+ include LICENSE
5
+ recursive-include tests *.py
6
+ recursive-include samples *.py *.md
7
+ include azure/storage/blob/py.typed