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-1/

User Profile Manager

A user profile management system that maintains user profiles in cloud storage with support for partial and full profile updates.

Capabilities

Profile Creation

  • Creates a new user profile with username "alice123", partition key "users", full name "Alice Smith", email "alice@example.com", and age 30 @test

Partial Profile Updates

  • Updates only the email field of an existing profile from "alice@example.com" to "alice.smith@example.com" while preserving all other fields (full name and age) @test
  • Updates only the age field of an existing profile from 30 to 31 while preserving email and full name @test

Full Profile Replacement

  • Replaces an entire profile with new data: changing full name to "Alice Johnson", email to "alice.j@example.com", and removing the age field completely @test
  • Replaces a profile with only username and email fields, removing full name and age fields from the entity @test

Implementation

@generates

API

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

Dependencies { .dependencies }

azure-data-tables { .dependency }

Provides Azure Table Storage client functionality for storing and managing user profiles.

@satisfied-by