Skip to content

Instantly share code, notes, and snippets.

@allene
allene / python-azure-blob-storage-download.py
Last active August 1, 2021 19:25 — forked from brijrajsingh/python-azure-blob-storage-download.py
Downloadin an Azure Storage Blob Container with complex path of folders and sub folders
import os
from azure.storage.blob import BlobServiceClient,ContainerClient, BlobClient
import datetime
# Assuming your Azure connection string environment variable set.
# If not, create BlobServiceClient using trl & credentials.
#Example: https://docs.microsoft.com/en-us/python/api/azure-storage-blob/azure.storage.blob.blobserviceclient
connection_string = os.getenv("AZURE_STORAGE_CONNECTION_STRING")