CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-azure-batch

Microsoft Azure Batch Client Library for Python providing comprehensive APIs for managing batch computing workloads in Azure cloud

91

1.07x
Overview
Eval results
Files

task.mdevals/scenario-4/

Application Package Deployment Manager

A utility for managing application package deployments to Azure Batch compute pools.

Capabilities

List available applications

  • Lists all applications available in the batch account @test
  • Returns empty list when no applications exist @test

Deploy application packages to pools

  • Deploys a specific application version to a pool @test
  • Deploys multiple application versions to a pool @test
  • Handles deployment when application package is already deployed @test

Retrieve application information

  • Retrieves details about a specific application including versions @test
  • Handles requests for non-existent applications appropriately @test

Implementation

@generates

The implementation should provide a PackageManager class that accepts batch service credentials and provides methods for managing application packages.

API

class PackageManager:
    """Manages application package deployment for Azure Batch pools."""

    def __init__(self, batch_url: str, credentials):
        """
        Initialize the package manager.

        Args:
            batch_url: The URL of the Azure Batch account
            credentials: Authentication credentials for the batch account
        """
        pass

    def list_applications(self) -> list:
        """
        List all applications in the batch account.

        Returns:
            A list of application IDs
        """
        pass

    def get_application(self, application_id: str) -> dict:
        """
        Get details about a specific application.

        Args:
            application_id: The ID of the application to retrieve

        Returns:
            A dictionary containing application details including available versions
        """
        pass

    def deploy_to_pool(self, pool_id: str, application_id: str, version: str = None):
        """
        Deploy an application package to a pool.

        Args:
            pool_id: The ID of the pool to deploy to
            application_id: The ID of the application to deploy
            version: Optional version string. If not specified, uses default version.
        """
        pass

Dependencies { .dependencies }

azure-batch { .dependency }

Provides Azure Batch service client capabilities for managing batch workloads.

Install with Tessl CLI

npx tessl i tessl/pypi-azure-batch

tile.json