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 user profile management system that maintains user profiles in cloud storage with support for partial and full profile updates.
@generates
from typing import Dict, Optional
class ProfileManager:
"""Manages user profiles in cloud storage."""
def __init__(self, connection_string: str, table_name: str):
"""
Initialize the profile manager.
Args:
connection_string: Azure Tables connection string
table_name: Name of the table to store profiles
"""
pass
def create_profile(
self,
username: str,
full_name: str,
email: str,
age: Optional[int] = None
) -> None:
"""
Create a new user profile.
Args:
username: Unique username (used as RowKey)
full_name: User's full name
email: User's email address
age: User's age (optional)
"""
pass
def update_profile_partial(
self,
username: str,
updates: Dict[str, any]
) -> None:
"""
Partially update a user profile, modifying only specified fields.
Existing fields not in updates should remain unchanged.
Args:
username: Username of the profile to update
updates: Dictionary of fields to update
"""
pass
def replace_profile(
self,
username: str,
full_name: Optional[str] = None,
email: Optional[str] = None,
age: Optional[int] = None
) -> None:
"""
Completely replace a user profile with new data.
Only fields provided as arguments will exist in the updated entity.
Fields not provided will be removed from the entity.
Args:
username: Username of the profile to replace
full_name: New full name (omit to remove field)
email: New email address (omit to remove field)
age: New age (omit to remove field)
"""
pass
def get_profile(self, username: str) -> Dict[str, any]:
"""
Retrieve a user profile.
Args:
username: Username of the profile to retrieve
Returns:
Dictionary containing profile data
"""
passProvides Azure Table Storage client functionality for storing and managing user profiles.
@satisfied-by