{"library":"azure-storage-blob","type":"library","category":null,"description":"Official Azure Blob Storage client library for Python. Current version: 12.28.0 (Mar 2026). v12 (released 2019) is a complete rewrite from v2.x — BlockBlobService removed, replaced by BlobServiceClient/ContainerClient/BlobClient. Most LLM training data and older tutorials use the removed v2 BlockBlobService API. Recommended auth is DefaultAzureCredential (azure-identity) not connection strings in production.","language":"python","status":"active","version":"12.28.0","tags":["azure","blob-storage","cloud","python","storage","azure-sdk"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install azure-storage-blob","imports":["from azure.storage.blob import BlobServiceClient\nimport os\n\n# From connection string\nconnect_str = os.environ['AZURE_STORAGE_CONNECTION_STRING']\nblob_service_client = BlobServiceClient.from_connection_string(connect_str)\n\n# Upload\ncontainer_client = blob_service_client.get_container_client('mycontainer')\nwith open('file.txt', 'rb') as data:\n    container_client.upload_blob('myblob', data, overwrite=True)\n\n# Download\nblob_client = blob_service_client.get_blob_client(\n    container='mycontainer', blob='myblob'\n)\nwith open('downloaded.txt', 'wb') as f:\n    f.write(blob_client.download_blob().readall())","from azure.identity import DefaultAzureCredential\nfrom azure.storage.blob import BlobServiceClient\n\n# Passwordless auth — works locally (CLI/VS Code) and in Azure (managed identity)\ncredential = DefaultAzureCredential()\nblob_service_client = BlobServiceClient(\n    account_url='https://myaccount.blob.core.windows.net',\n    credential=credential\n)\n\n# Upload\nblob_client = blob_service_client.get_blob_client(\n    container='mycontainer', blob='myblob'\n)\nwith open('file.txt', 'rb') as data:\n    blob_client.upload_blob(data, overwrite=True)\n"]},{"cmd":"pip install azure-storage-blob azure-identity","imports":[]}],"homepage":"https://azure.microsoft.com/products/storage/blobs","github":"https://github.com/Azure/azure-sdk-for-python","docs":null,"changelog":null,"pypi":"https://pypi.org/project/azure-storage-blob/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":3.7,"avg_import_s":1.23,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/azure-storage-blob/compatibility"}}