or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/azure-data-tables@12.7.x
tile.json

tessl/pypi-azure-data-tables

tessl install tessl/pypi-azure-data-tables@12.7.0

Microsoft Azure Data Tables Client Library for Python

Agent Success

Agent success rate when using this tile

90%

Improvement

Agent success rate improvement when using this tile compared to baseline

0.97x

Baseline

Agent success rate without this tile

93%

task.mdevals/scenario-5/

Table Lifecycle Manager

A utility that manages Azure Table Storage tables throughout their lifecycle, providing operations to create, list, and delete tables with proper error handling.

Capabilities

Table Creation

  • It creates a new table with a specified name @test
  • It handles gracefully when attempting to create a table that already exists @test
  • It validates table name format before creation @test

Table Listing

  • It retrieves a list of all tables in the storage account @test
  • It filters tables by name prefix @test

Table Deletion

  • It deletes an existing table by name @test
  • It handles gracefully when attempting to delete a non-existent table @test

Batch Table Operations

  • It creates multiple tables in sequence @test

Implementation

@generates

The implementation should use a connection string for authentication and provide a class-based interface for table management operations.

API

class TableLifecycleManager:
    """Manages Azure Table Storage tables throughout their lifecycle."""

    def __init__(self, connection_string: str):
        """
        Initialize the manager with Azure Storage connection string.

        Args:
            connection_string: Azure Storage account connection string
        """
        pass

    def create_table(self, table_name: str, fail_if_exists: bool = True) -> bool:
        """
        Create a new table.

        Args:
            table_name: Name of the table to create
            fail_if_exists: If True, raise error if table exists; if False, silently succeed

        Returns:
            True if table was created, False if it already existed and fail_if_exists=False

        Raises:
            ValueError: If table name is invalid
            Exception: If creation fails and fail_if_exists=True
        """
        pass

    def list_tables(self, name_filter: str = None) -> list[str]:
        """
        List all tables in the storage account.

        Args:
            name_filter: Optional prefix to filter table names

        Returns:
            List of table names
        """
        pass

    def delete_table(self, table_name: str, ignore_missing: bool = False) -> bool:
        """
        Delete a table.

        Args:
            table_name: Name of the table to delete
            ignore_missing: If True, don't raise error if table doesn't exist

        Returns:
            True if table was deleted, False if it didn't exist and ignore_missing=True

        Raises:
            Exception: If table doesn't exist and ignore_missing=False
        """
        pass

    def create_tables(self, table_names: list[str]) -> dict[str, bool]:
        """
        Create multiple tables.

        Args:
            table_names: List of table names to create

        Returns:
            Dictionary mapping table names to creation success (True/False)
        """
        pass

Dependencies { .dependencies }

azure-data-tables { .dependency }

Provides Azure Table Storage client functionality for managing tables and entities.