CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-azure-storage-file-datalake

Microsoft Azure File DataLake Storage Client Library for Python

Overall
score

92%

Overview
Eval results
Files

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how well the engineer uses the azure-storage-file-datalake package to perform rename operations on files and directories in Azure DataLake Storage Gen2. It focuses specifically on the correct usage of DataLakeDirectoryClient.rename_directory() and DataLakeFileClient.rename_file() methods.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Service client initialization",
      "description": "Uses DataLakeServiceClient to initialize the service client with the account URL and credential",
      "max_score": 15
    },
    {
      "name": "File system client access",
      "description": "Obtains FileSystemClient from DataLakeServiceClient using get_file_system_client() method with the file system name",
      "max_score": 10
    },
    {
      "name": "Directory client creation",
      "description": "Creates DataLakeDirectoryClient using get_directory_client() method from FileSystemClient for directory rename operations",
      "max_score": 10
    },
    {
      "name": "Directory rename execution",
      "description": "Uses DataLakeDirectoryClient.rename_directory() method to perform the directory rename operation, passing the new directory path",
      "max_score": 25
    },
    {
      "name": "File client creation",
      "description": "Creates DataLakeFileClient using get_file_client() method from FileSystemClient for file rename operations",
      "max_score": 10
    },
    {
      "name": "File rename execution",
      "description": "Uses DataLakeFileClient.rename_file() method to perform the file rename/move operation, passing the new file path",
      "max_score": 25
    },
    {
      "name": "Error handling",
      "description": "Properly handles exceptions such as ResourceNotFoundError or HttpResponseError when rename operations fail",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-azure-storage-file-datalake

tile.json