Registry /
azure / simple-azure-blob-downloader
Install & Compatibility
Where this runs
tested against v0.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 47.3MB
glibcpy 3.10–3.920 runs
installs and imports cleanly · install 3.9s · import 0.000s · 48MB
47MB installed
● package 47MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
download_blob
✓ import simple_azure_blob_downloader
✗ from simple_azure_blob_downloader import download_blob
This quickstart demonstrates how to download a single blob from Azure Blob Storage using the `download_blob` function. Ensure your Azure Storage connection string, container name, and blob name are configured, preferably via environment variables for security.
import os
from simple_azure_blob_downloader import download_blob
# Set environment variables for secure access
# AZURE_STORAGE_CONNECTION_STRING should be your storage account's connection string
# e.g., 'DefaultEndpointsProtocol=https;AccountName=youraccount;AccountKey=yourkey;EndpointSuffix=core.windows.net'
connection_string = os.environ.get('AZURE_STORAGE_CONNECTION_STRING', 'YOUR_AZURE_STORAGE_CONNECTION_STRING')
container_name = os.environ.get('AZURE_BLOB_CONTAINER_NAME', 'my-container')
blob_name = os.environ.get('AZURE_BLOB_NAME', 'my-file.txt')
local_destination_path = os.environ.get('LOCAL_DOWNLOAD_PATH', 'downloaded_file.txt')
if connection_string == 'YOUR_AZURE_STORAGE_CONNECTION_STRING':
print("Please set the AZURE_STORAGE_CONNECTION_STRING environment variable or replace the placeholder.")
else:
try:
# Download a single blob
download_blob(connection_string, container_name, blob_name, local_destination_path)
print(f"Successfully downloaded '{blob_name}' to '{local_destination_path}'.")
except Exception as e:
print(f"An error occurred: {e}")
Upgrade
Version history
0.1.0latest on PyPI · released Jul 25, 2022
Audit
Dependencies
azure-storage-blobrequiredCore functionality for interacting with Azure Blob Storage.