or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/azure-storage-file-datalake@12.21.x
tile.json

tessl/pypi-azure-storage-file-datalake

tessl install tessl/pypi-azure-storage-file-datalake@12.21.0

Microsoft 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%

task.mdevals/scenario-4/

Azure Data Lake File System Manager

A utility module for managing Azure Data Lake file systems with lifecycle operations.

Overview

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.

Capabilities

Create File System

  • Creates a new file system with the specified name @test
  • Handles the case when a file system already exists @test

Delete File System

  • Deletes an existing file system by name @test
  • Handles the case when attempting to delete a non-existent file system @test

Check File System Existence

  • Returns True when a file system exists @test
  • Returns False when a file system does not exist @test

Get File System Properties

  • Retrieves properties of an existing file system @test
  • Returns metadata associated with a file system @test

Implementation

@generates

The implementation should use appropriate methods for each lifecycle operation and handle errors gracefully.

API

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
    """
    pass

Dependencies { .dependencies }

azure-storage-file-datalake { .dependency }

Provides Azure Data Lake Storage Gen2 client functionality for managing file systems and performing storage operations.