CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-azure-mgmt-media

Microsoft Azure Media Services Client Library for Python - A management library for Azure Media Services that provides programmatic access to media processing and streaming capabilities in the cloud.

83

1.09x

Quality

Pending

Does it follow best practices?

Impact

83%

1.09x

Average score across 10 eval scenarios

Overview
Eval results
Files

task.mdevals/scenario-6/

Media Services Live Event Manager

A command-line tool for managing Azure Media Services live events with proper handling of long-running operations.

Capabilities

Live Event Creation

  • Creates a new live event with specified configuration and waits for completion @test
  • Returns the operation status and final live event details after creation completes @test

Live Event Startup

  • Starts an existing live event and monitors the operation until completion @test
  • Returns the operation status when the live event is fully started @test

Operation Status Tracking

  • Polls and retrieves the current status of an ongoing live event operation @test
  • Handles operations that are in progress, completed, or failed @test

Live Event Deletion

  • Deletes a live event and waits for the operation to complete @test
  • Confirms successful deletion through operation status verification @test

Implementation

@generates

API

from typing import Optional, Dict, Any

class LiveEventManager:
    """Manager for Azure Media Services live events with LRO support."""

    def __init__(self, client, resource_group: str, account_name: str):
        """
        Initialize the manager.

        Args:
            client: AzureMediaServices client instance
            resource_group: Azure resource group name
            account_name: Media Services account name
        """
        pass

    def create_live_event(self, live_event_name: str, description: str,
                         encoding_type: str = "PassthroughBasic") -> Dict[str, Any]:
        """
        Create a new live event and wait for completion.

        Args:
            live_event_name: Name for the live event
            description: Description of the live event
            encoding_type: Encoding type (default: "PassthroughBasic")

        Returns:
            Dictionary containing:
                - status: Operation status
                - live_event: The created live event resource
                - operation_id: The operation identifier
        """
        pass

    def start_live_event(self, live_event_name: str) -> Dict[str, Any]:
        """
        Start a live event and wait for completion.

        Args:
            live_event_name: Name of the live event to start

        Returns:
            Dictionary containing:
                - status: Operation status
                - operation_id: The operation identifier
        """
        pass

    def get_operation_status(self, live_event_name: str, operation_id: str) -> Dict[str, Any]:
        """
        Retrieve the status of a long-running operation.

        Args:
            live_event_name: Name of the live event
            operation_id: The operation identifier

        Returns:
            Dictionary containing:
                - status: Current operation status
                - operation_id: The operation identifier
                - error: Error details if failed (optional)
        """
        pass

    def delete_live_event(self, live_event_name: str) -> Dict[str, Any]:
        """
        Delete a live event and wait for completion.

        Args:
            live_event_name: Name of the live event to delete

        Returns:
            Dictionary containing:
                - status: Operation status
                - operation_id: The operation identifier
        """
        pass

Dependencies { .dependencies }

azure-mgmt-media { .dependency }

Provides Azure Media Services management capabilities including live event operations and long-running operation tracking.

Install with Tessl CLI

npx tessl i tessl/pypi-azure-mgmt-media

tile.json