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%
A utility module for managing Azure Data Lake file systems with lifecycle operations.
This module provides functions to manage file systems in Azure Data Lake Storage Gen2, including creating, deleting, checking existence, and retrieving properties of file systems.
@generates
The implementation should use appropriate methods for each lifecycle operation and handle errors gracefully.
from typing import Dict, Any, Optional
def create_filesystem(service_client, filesystem_name: str, metadata: Optional[Dict[str, str]] = None) -> bool:
"""
Creates a new file system in Azure Data Lake Storage.
Args:
service_client: The DataLakeServiceClient instance
filesystem_name: Name of the file system to create
metadata: Optional metadata to associate with the file system
Returns:
True if created successfully, False if already exists
"""
pass
def delete_filesystem(service_client, filesystem_name: str) -> bool:
"""
Deletes a file system from Azure Data Lake Storage.
Args:
service_client: The DataLakeServiceClient instance
filesystem_name: Name of the file system to delete
Returns:
True if deleted successfully, False if not found
"""
pass
def filesystem_exists(service_client, filesystem_name: str) -> bool:
"""
Checks if a file system exists in Azure Data Lake Storage.
Args:
service_client: The DataLakeServiceClient instance
filesystem_name: Name of the file system to check
Returns:
True if the file system exists, False otherwise
"""
pass
def get_filesystem_properties(service_client, filesystem_name: str) -> Optional[Dict[str, Any]]:
"""
Retrieves properties and metadata of a file system.
Args:
service_client: The DataLakeServiceClient instance
filesystem_name: Name of the file system
Returns:
Dictionary containing properties including metadata, or None if not found
"""
passProvides Azure Data Lake Storage Gen2 client functionality for managing file systems and performing storage operations.