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
Quality
Pending
Does it follow best practices?
Impact
83%
1.09xAverage score across 10 eval scenarios
A command-line tool for managing Azure Media Services live events with proper handling of long-running operations.
@generates
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
"""
passProvides 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-mediadocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10