← ClaudeAtlas

azure-storage-file-share-pylisted

Azure Storage File Share SDK for Python. Use for SMB file shares, directories, and file operations in the cloud. Triggers: "azure-storage-file-share", "ShareServiceClient", "ShareClient", "file share", "SMB".
aiskillstore/marketplace · ★ 329 · AI & Automation · score 79
Install: claude install-skill aiskillstore/marketplace
# Azure Storage File Share SDK for Python Manage SMB file shares for cloud-native and lift-and-shift scenarios. ## Installation ```bash pip install azure-storage-file-share ``` ## Environment Variables ```bash AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=https;AccountName=...;AccountKey=... # Or AZURE_STORAGE_ACCOUNT_URL=https://<account>.file.core.windows.net ``` ## Authentication ### Connection String ```python from azure.storage.fileshare import ShareServiceClient service = ShareServiceClient.from_connection_string( os.environ["AZURE_STORAGE_CONNECTION_STRING"] ) ``` ### Entra ID ```python from azure.storage.fileshare import ShareServiceClient from azure.identity import DefaultAzureCredential service = ShareServiceClient( account_url=os.environ["AZURE_STORAGE_ACCOUNT_URL"], credential=DefaultAzureCredential() ) ``` ## Share Operations ### Create Share ```python share = service.create_share("my-share") ``` ### List Shares ```python for share in service.list_shares(): print(f"{share.name}: {share.quota} GB") ``` ### Get Share Client ```python share_client = service.get_share_client("my-share") ``` ### Delete Share ```python service.delete_share("my-share") ``` ## Directory Operations ### Create Directory ```python share_client = service.get_share_client("my-share") share_client.create_directory("my-directory") # Nested directory share_client.create_directory("my-directory/sub-directory") ``` ### List Directories and Files