Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Manage Azure Storage services including Blob, File Shares, Queues, Tables, and Data Lake
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/sdk/azure-storage-blob-py.md
1# Blob Storage — Python SDK Quick Reference23> Condensed from **azure-storage-blob-py**. Full patterns (SAS tokens,4> async client, performance tuning, blob properties/metadata)5> in the **azure-storage-blob-py** plugin skill if installed.67## Install8pip install azure-storage-blob azure-identity910## Quick Start11```python12from azure.storage.blob import BlobServiceClient13from azure.identity import DefaultAzureCredential14blob_service_client = BlobServiceClient("https://<account>.blob.core.windows.net", DefaultAzureCredential())15```1617## Best Practices18- Use DefaultAzureCredential for **local development only** — in production, use ManagedIdentityCredential. See [auth-best-practices.md](../auth-best-practices.md)19- Use context managers for async clients20- Set `overwrite=True` explicitly when re-uploading21- Use `max_concurrency` for large file transfers22- Prefer `readinto()` over `readall()` for memory efficiency23- Use `walk_blobs()` for hierarchical listing24- Set appropriate content types for web-served blobs25