azure-storage-file-share-py

Featured

Azure Storage File Share SDK for Python. Use for SMB file shares, directories, and file operations in the cloud.

AI & Automation 40,440 stars 6528 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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...

Details

Author
sickn33
Repository
sickn33/antigravity-awesome-skills
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category