Skip to content

Support for blobs synchronization #40271

Open
@martinResearch

Description

@martinResearch

Is your feature request related to a problem? Please describe.

I have a many blobs in a blob storage folder and would like to synchronize them with local copies i.e. download blobs that are missing locally or have been modified in the azure storage since the last synchronization, based on the last modification data and/or the MD5 hash.

azcopy supports that feature trough azcopy sync https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-blobs-synchronize
It would be great to have the same feature through the Python SDK for a better integration in the python ecosystem.

Describe the solution you'd like
I would like a method

def synchronize_blobs(blobs_prefix:Optional[str]=None, blobs_list:Optional[list[str]]=None, local_folder:str,  md5:bool=True)

that can take either a prefix or an explicit list of blobs and synchronize with files in a local folder.

I have implemented my own class derived from azure.storage.blob.ContainerClient to support that feature, but I would prefer it to be supported by the SDK out of the box

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions