tessl install tessl/pypi-azure-data-tables@12.7.0Microsoft 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%
A utility that manages Azure Table Storage tables throughout their lifecycle, providing operations to create, list, and delete tables with proper error handling.
@generates
The implementation should use a connection string for authentication and provide a class-based interface for table management operations.
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)
"""
passProvides Azure Table Storage client functionality for managing tables and entities.