Skip to content

Commit 5e5de30

Browse files
Merge pull request #222125 from vmagelo/freshness-work
Freshness work.
2 parents 724a2c1 + d3a6287 commit 5e5de30

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed

articles/storage/common/storage-samples-python.md

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Azure Storage samples using Python
33
description: View, download, and run sample code and applications for Azure Storage. Discover getting started samples for blobs, queues, tables, and files, using the Python storage client libraries.
44
author: pauljewellmsft
55
ms.author: pauljewell
6-
ms.date: 10/01/2020
6+
ms.date: 12/21/2022
77
ms.service: storage
88
ms.subservice: common
99
ms.topic: sample
@@ -13,10 +13,10 @@ ms.custom: devx-track-python, py-fresh-zinc
1313

1414
# Azure Storage samples using v12 Python client libraries
1515

16-
The following tables provide an overview of our samples repository and the scenarios covered in each sample. Click on the links to view the corresponding sample code in GitHub.
16+
The following tables provide an overview of our samples repository and the scenarios covered in each sample. Select the links to view the corresponding sample code in GitHub.
1717

1818
> [!NOTE]
19-
> These samples use the latest Azure Storage .NET v12 library. For legacy v2.1 code, see [Azure Storage: Getting Started with Azure Storage in Python](https://github.com/Azure-Samples/storage-blob-python-getting-started) in the GitHub repository.
19+
> These samples use the latest [Azure Storage .NET v12 library](/python/api/overview/azure/storage). For legacy v2.1 code, see [Azure Storage: Getting Started with Azure Storage in Python](https://github.com/Azure-Samples/storage-blob-python-getting-started) in the GitHub repository.
2020
2121
## Blob samples
2222

@@ -107,74 +107,74 @@ The following tables provide an overview of our samples repository and the scena
107107

108108
:::row:::
109109
:::column span="":::
110-
[Create container client from service](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L35)
110+
[Create container client from service](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L36)
111111
:::column-end:::
112112
:::column span="":::
113-
[Create container client using SAS URL](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L44)
113+
[Create container client using SAS URL](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L45)
114114
:::column-end:::
115115
:::row-end:::
116116
:::row:::
117117
:::column span="":::
118-
[Create container using container client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L52)
118+
[Create container using container client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L53)
119119
:::column-end:::
120120
:::column span="":::
121-
[Get container properties](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L56)
121+
[Get container properties](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L57)
122122
:::column-end:::
123123
:::row-end:::
124124
:::row:::
125125
:::column span="":::
126-
[Delete container using container client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L61)
126+
[Delete container using container client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L62)
127127
:::column-end:::
128128
:::column span="":::
129-
[Acquire lease on container](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L80)
129+
[Acquire lease on container](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L81)
130130
:::column-end:::
131131
:::row-end:::
132132
:::row:::
133133
:::column span="":::
134-
[Set container metadata](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L101)
134+
[Set container metadata](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L102)
135135
:::column-end:::
136136
:::column span="":::
137-
[Set container access policy](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L128)
137+
[Set container access policy](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L129)
138138
:::column-end:::
139139
:::row-end:::
140140
:::row:::
141141
:::column span="":::
142-
[Get container access policy](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L141)
142+
[Get container access policy](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L142)
143143
:::column-end:::
144144
:::column span="":::
145-
[Generate SAS token](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L145)
145+
[Generate SAS token](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L146)
146146
:::column-end:::
147147
:::row-end:::
148148
:::row:::
149149
:::column span="":::
150150
[Create container client using SAS token](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L158)
151151
:::column-end:::
152152
:::column span="":::
153-
[Upload blob to container](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L182)
153+
[Upload blob to container](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L183)
154154
:::column-end:::
155155
:::row-end:::
156156
:::row:::
157157
:::column span="":::
158-
[List blobs in container](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L189)
158+
[List blobs in container](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L190)
159159
:::column-end:::
160160
:::column span="":::
161-
[Get blob client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L213)
161+
[Get blob client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py#L214)
162162
:::column-end:::
163163
:::row-end:::
164164

165165
### Blob
166166

167167
:::row:::
168168
:::column span="":::
169-
[Upload a blob](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world.py#L68)
169+
[Upload a blob](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world.py#L69)
170170
:::column-end:::
171171
:::column span="":::
172-
[Download a blob](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world.py#L74)
172+
[Download a blob](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world.py#L75)
173173
:::column-end:::
174174
:::row-end:::
175175
:::row:::
176176
:::column span="":::
177-
[Delete blob](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world.py#L80)
177+
[Delete blob](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world.py#L81)
178178
:::column-end:::
179179
:::column span="":::
180180
[Undelete blob](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_common.py#L100)
@@ -208,72 +208,72 @@ The following tables provide an overview of our samples repository and the scena
208208

209209
:::row:::
210210
:::column span="2":::
211-
[Create Data Lake service client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L64)
211+
[Create Data Lake service client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L84)
212212
:::column-end:::
213213
:::row-end:::
214214

215215
### File system
216216

217217
:::row:::
218218
:::column span="":::
219-
[Create file system client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L74)
219+
[Create file system client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L94)
220220
:::column-end:::
221221
:::column span="":::
222-
[Delete file system](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L81)
222+
[Delete file system](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L101)
223223
:::column-end:::
224224
:::row-end:::
225225

226226
### Directory
227227

228228
:::row:::
229229
:::column span="":::
230-
[Create directory client](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L14)
230+
[Create directory client](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L33)
231231
:::column-end:::
232232
:::column span="":::
233-
[Get directory permissions](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L19)
233+
[Get directory permissions](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L38)
234234
:::column-end:::
235235
:::row-end:::
236236
:::row:::
237237
:::column span="":::
238-
[Set directory permissions](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L23)
238+
[Set directory permissions](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L42)
239239
:::column-end:::
240240
:::column span="":::
241-
[Rename directory](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_directory.py#L19)
241+
[Rename directory](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_directory.py#L52)
242242
:::column-end:::
243243
:::row-end:::
244244
:::row:::
245245
:::column span="":::
246-
[Get directory properties](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_directory.py#L25)
246+
[Get directory properties](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_directory.py#L60)
247247
:::column-end:::
248248
:::column span="":::
249-
[Delete directory](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_directory.py#L29)
249+
[Delete directory](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_directory.py#L67)
250250
:::column-end:::
251251
:::row-end:::
252252

253253
### File
254254

255255
:::row:::
256256
:::column span="":::
257-
[Create file client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_upload_download.py#L13)
257+
[Create file client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_upload_download.py#L39)
258258
:::column-end:::
259259
:::column span="":::
260-
[Create file](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L45)
260+
[Create file](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L72)
261261
:::column-end:::
262262
:::row-end:::
263263
:::row:::
264264
:::column span="":::
265-
[Get file permissions](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L35)
265+
[Get file permissions](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L38)
266266
:::column-end:::
267267
:::column span="":::
268-
[Set file permissions](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L38)
268+
[Set file permissions](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py#L58)
269269
:::column-end:::
270270
:::row-end:::
271271
:::row:::
272272
:::column span="":::
273-
[Append data to file](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_upload_download.py#L18)
273+
[Append data to file](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_upload_download.py#L52)
274274
:::column-end:::
275275
:::column span="":::
276-
[Read data from file](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_upload_download.py#L29)
276+
[Read data from file](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_upload_download.py#L67)
277277
:::column-end:::
278278
:::row-end:::
279279

@@ -323,31 +323,31 @@ The following tables provide an overview of our samples repository and the scena
323323

324324
:::row:::
325325
:::column span="":::
326-
[Create share client from connection string](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L52)
326+
[Create share client from connection string](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L54)
327327
:::column-end:::
328328
:::column span="":::
329329
[Get share client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_service.py#L96)
330330
:::column-end:::
331331
:::row-end:::
332332
:::row:::
333333
:::column span="":::
334-
[Create share using file share client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L39)
334+
[Create share using file share client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L40)
335335
:::column-end:::
336336
:::column span="":::
337-
[Create share snapshot](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L43)
337+
[Create share snapshot](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L45)
338338
:::column-end:::
339339
:::row-end:::
340340
:::row:::
341341
:::column span="":::
342-
[Delete share using file share client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L47)
342+
[Delete share using file share client](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L49)
343343
:::column-end:::
344344
:::column span="":::
345-
[Set share quota](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L61)
345+
[Set share quota](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L63)
346346
:::column-end:::
347347
:::row-end:::
348348
:::row:::
349349
:::column span="":::
350-
[Set share metadata](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L66)
350+
[Set share metadata](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L68)
351351
:::column-end:::
352352
:::column span="":::
353353
[Get share properties](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_hello_world.py#L47)
@@ -390,7 +390,7 @@ The following tables provide an overview of our samples repository and the scena
390390
:::row-end:::
391391
:::row:::
392392
:::column span="2":::
393-
[List files in directory](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L87)
393+
[List files in directory](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py#L127)
394394
:::column-end:::
395395
:::row-end:::
396396

@@ -510,18 +510,18 @@ The following tables provide an overview of our samples repository and the scena
510510
:::row-end:::
511511
:::row:::
512512
:::column span="":::
513-
[Peek message](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-queue/samples/queue_samples_message.py#L197)
513+
[Peek message](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-queue/samples/queue_samples_message.py#L258)
514514
:::column-end:::
515515
:::column span="":::
516-
[Update message](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-queue/samples/queue_samples_message.py#L222)
516+
[Update message](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-queue/samples/queue_samples_message.py#L283)
517517
:::column-end:::
518518
:::row-end:::
519519
:::row:::
520520
:::column span="":::
521-
[Delete message](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-queue/samples/queue_samples_message.py#L165)
521+
[Delete message](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-queue/samples/queue_samples_message.py#L226)
522522
:::column-end:::
523523
:::column span="":::
524-
[Clear messages](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-queue/samples/queue_samples_message.py#L173)
524+
[Clear messages](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-queue/samples/queue_samples_message.py#L234)
525525
:::column-end:::
526526
:::row-end:::
527527
:::row:::
@@ -575,12 +575,12 @@ You can browse and clone the GitHub repository for each library.
575575

576576
## Getting started guides
577577

578-
Check out the following guides if you are looking for instructions on how to install and get started with the Azure Storage client libraries.
578+
Check out the following guides if you're looking for instructions on how to install and get started with the Azure Storage client libraries.
579579

580580
- [Getting Started with Azure Blob Service in Python](../blobs/storage-quickstart-blobs-python.md)
581+
- [Getting Started with Azure File Service in Python](../files/storage-python-how-to-use-file-storage.md)
581582
- [Getting Started with Azure Queue Service in Python](../queues/storage-quickstart-queues-python.md)
582583
- [Getting Started with Azure Table Service in Python](../../cosmos-db/table-storage-how-to-use-python.md)
583-
- [Getting Started with Azure File Service in Python](../files/storage-python-how-to-use-file-storage.md)
584584

585585
## Next steps
586586

0 commit comments

Comments
 (0)