tessl install tessl/pypi-azure-storage-file-datalake@12.21.0Microsoft Azure File DataLake Storage Client Library for Python
Agent Success
Agent success rate when using this tile
92%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.99x
Baseline
Agent success rate without this tile
93%
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.net