Microsoft Azure File DataLake Storage Client Library for Python
Overall
score
92%
Build a Python module that demonstrates secure authentication to Azure Data Lake Storage Gen2 using multiple authentication methods.
Your module should provide functionality to:
The module should handle authentication configuration and token generation in a straightforward manner.
Create a file auth_manager.py that exports the following functions:
create_client_from_connection_string(connection_string: str) - Returns a service client authenticated with connection stringcreate_client_from_shared_key(account_name: str, account_key: str) - Returns a service client authenticated with account name and keycreate_client_from_sas(account_url: str, sas_token: str) - Returns a service client authenticated with a SAS tokengenerate_account_sas(account_name: str, account_key: str, expiry_hours: int, permissions: str) - Generates an account-level SAS token stringgenerate_file_system_sas(account_name: str, account_key: str, file_system_name: str, expiry_hours: int, permissions: str) - Generates a file system-level SAS token string@generates
Provides Azure Data Lake Storage Gen2 client library for Python with comprehensive authentication support.
https://{account_name}.dfs.core.windows.netInstall with Tessl CLI
npx tessl i tessl/pypi-azure-storage-file-datalakedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10