Les på engelsk Rediger

Del via


Azure Storage samples using Python client libraries

This article provides an overview of code sample scenarios found in our developer guides and samples repository. Click on the links to view the corresponding samples, either in our developer guides or in GitHub repositories.

Developer guides are collections of articles that provide detailed information and code examples for specific scenarios related to Azure Storage services. To learn more about the Blob Storage developer guide for Python, see Get started with Azure Blob Storage and Python.

Obs!

These samples use the latest Azure Storage Python v12 library. For legacy v2.1 code, see Azure Storage: Getting Started with Azure Storage in Python in the GitHub repository.

Blob samples

The following table links to Azure Blob Storage developer guides and samples that use Python client libraries:

Topic Developer guide Samples on GitHub
Authentication/authorization Authorize access and connect to Blob Storage

Create a user delegation SAS for a blob

Create a service SAS for a blob

Create an account SAS
Create blob service client using Azure Identity

Create blob service client using a connection string

Create blob service client using a shared access key

Create blob client from URL

Create blob client SAS URL

Create blob service client using ClientSecretCredential

Create SAS token
Create container Create a container Create container

Create container client using SAS URL

Create container using container client
Upload Upload a blob Upload a blob

Upload blob to container
Download Download a blob Download a blob
List List containers

List blobs
List containers

List blobs in container
Delete Delete containers

Delete blobs
Delete container using service client

Delete container using container client

Delete blob

Delete multiple blobs

Undelete blob
Copy Overview of copy operations

Copy a blob from a source object URL

Copy a blob with asynchronous scheduling
Copy blob from URL

Abort copy blob from URL
Lease Create and manage container leases

Create and manage blob leases
Acquire lease on container

Acquire lease on blob
Properties and metadata Manage container properties and metadata

Manage blob properties and metadata
Get container properties

Set container metadata

Get blob properties
Index tags Use blob index tags to manage and find data
Access tiers Set or change a block blob's access tier
Blob service Get blob service account info

Set blob service properties

Get blob service properties

Get blob service stats
Access policy Set container access policy

Get container access policy

Data Lake Storage samples

The following table links to Azure Data Lake Storage samples that use Python client libraries:

Azure File samples

The following table links to Azure File samples that use Python client libraries:

Queue samples

The following table links to Azure Queues samples that use Python client libraries:

Table samples

The following list links to Azure Table samples that use Python client libraries:

Samples for deprecated client libraries are available at Azure Table Storage samples for Python.

Azure code sample libraries

To view the complete Python sample libraries, go to:

You can browse and clone the GitHub repository for each library.

Getting started guides

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

Next steps

For information on samples for other languages:

Obs! Forfatteren opprettet denne artikkelen med hjelp fra kunstig intelligens. Finn ut mer