Registry /
azure / azure-storage-blob-changefeed
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ChangeFeedClient
✓ from azure.storage.blob.changefeed import ChangeFeedClient
✗ from azure.storage.blob.changefeed import BlobChangeFeedClient
The class is named ChangeFeedClient, not BlobChangeFeedClient.
Initialize a ChangeFeedClient with a BlobServiceClient and DefaultAzureCredential, then iterate over change feed events.
import os
from azure.storage.blob import BlobServiceClient
from azure.storage.blob.changefeed import ChangeFeedClient
from azure.identity import DefaultAzureCredential
account_url = os.environ.get('STORAGE_ACCOUNT_URL', 'https://mystorageaccount.blob.core.windows.net')
credential = DefaultAzureCredential()
blob_service_client = BlobServiceClient(account_url=account_url, credential=credential)
change_feed_client = ChangeFeedClient(blob_service_client=blob_service_client)
# List change feed events (iterates over all events from the beginning)
for event in change_feed_client.list_changes():
print(event.event_type, event.event_time)
# Process event
break
Errors
Common errors & fixes
ImportError: cannot import name 'ChangeFeedClient' from 'azure.storage.blob.changefeed'
The module is not installed or pip package is missing.
fixInstall the package: pip install azure-storage-blob-changefeed==12.0.0b5
AttributeError: 'ChangeFeedClient' object has no attribute 'list_changes'
The method may have been renamed or the API changed between beta versions.
fixCheck documentation for the installed version: dir(change_feed_client) to see available methods.
HttpResponseError: This operation is not supported for this storage account type
The storage account does not have the change feed feature enabled or is not a general-purpose v2 or BlobStorage account.
fixEnable change feed in the Azure portal under Data protection > Change feed. Ensure account type is StorageV2 or BlobStorage.
Upgrade
Version history
12.0.0b5latest on PyPI · released Apr 16, 2024
Audit
Dependencies
azure-storage-blobrequiredRequired for authentication and BlobServiceClient.
azure-identityoptionalRecommended for DefaultAzureCredential usage.