{"id":45115,"library":"huaweicloudsdklive","title":"Huawei Cloud Live SDK","description":"Official Huawei Cloud Python SDK for Live (video live streaming) service. Provides APIs to manage live streaming domains, transcode rules, recording configurations, and more. Current version: 3.1.198. Released frequently alongside Huawei Cloud API updates.","status":"active","version":"3.1.198","language":"python","source_language":"en","source_url":"https://github.com/huaweicloud/huaweicloud-sdk-python-v3","tags":["huaweicloud","live","streaming","sdk"],"install":[{"cmd":"pip install huaweicloudsdklive","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core SDK required for authentication and HTTP client.","package":"huaweicloudsdkcore","optional":false}],"imports":[{"note":"LiveClient is under the v1 subpackage.","wrong":"from huaweicloudsdklive import LiveClient","symbol":"LiveClient","correct":"from huaweicloudsdklive.v1 import LiveClient"},{"note":"","symbol":"CreateDomainRequest","correct":"from huaweicloudsdklive.v1 import CreateDomainRequest"}],"quickstart":{"code":"import os\nfrom huaweicloudsdkcore.auth.credentials import BasicCredentials\nfrom huaweicloudsdkcore.http.http_config import HttpConfig\nfrom huaweicloudsdklive.v1 import LiveClient, ListTranscodingsTemplateRequest\n\nak = os.environ.get('HUAWEICLOUD_AK', '')\nsk = os.environ.get('HUAWEICLOUD_SK', '')\nregion = os.environ.get('HUAWEICLOUD_REGION', 'cn-north-4')\n\ncredentials = BasicCredentials(ak, sk)\nhttp_config = HttpConfig.get_default_config()\nclient = LiveClient.new_builder() \\\n    .with_credentials(credentials) \\\n    .with_region(region) \\\n    .with_http_config(http_config) \\\n    .build()\n\nrequest = ListTranscodingsTemplateRequest(domain='play.example.com')\ntry:\n    response = client.list_transcodings_template(request)\n    print(response)\nexcept Exception as e:\n    print(e)","lang":"python","description":"Initialize the Live client and list transcoding templates for a domain."},"warnings":[{"fix":"Use per-service package 'huaweicloudsdklive' and import from 'huaweicloudsdklive.v1'.","message":"In version 3.0.40+, the SDK switched from huaweicloud-sdk-python-v3 to separate per-service packages. Old import paths (e.g., from huaweicloudsdk to Live) are removed.","severity":"breaking","affected_versions":">=3.0.40"},{"fix":"Pass the correct region ID from the Huawei Cloud documentation.","message":"The region string must be a valid Huawei Cloud region ID (e.g., 'cn-north-4'). Incorrect region will cause authentication or endpoint errors.","severity":"gotcha","affected_versions":"all"},{"fix":"Provide the domain name without protocol or path.","message":"Some API methods require the domain parameter to be the live streaming domain (e.g., 'play.example.com'), not the full URL.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'3.1.198':31 'alongsid':34 'api':17,37 'cloud':2,7,36 'configur':26 'current':29 'domain':22 'frequent':33 'huawei':1,6,35 'huaweicloud':39 'live':3,11,13,20,40 'manag':19 'offici':5 'provid':16 'python':8 'record':25 'releas':32 'rule':24 'sdk':4,9,42 'servic':15 'stream':14,21,41 'transcod':23 'updat':38 'version':30 'video':12","created_at":"2026-06-07T12:53:26.482552+00:00","updated_at":"2026-06-07T12:53:26.482552+00:00","problems":[{"fix":"Verify your Access Key and Secret Key are correct and have not expired. Generate new ones from the Huawei Cloud console if needed.","cause":"Invalid or expired AK/SK credentials.","error":"huaweicloudsdkcore.exceptions.exceptions.ServiceResponseException: status_code: 401, error_code: LIVE.100011001, ..."},{"fix":"Change import to 'from huaweicloudsdklive.v1 import ...'.","cause":"Old SDK structure used 'huaweicloudsdklive' as the import path without the 'v1' subpackage. After the breaking change, the correct import path is 'huaweicloudsdklive.v1'.","error":"AttributeError: module 'huaweicloudsdklive' has no attribute 'v1'"},{"fix":"Use a valid region ID like 'cn-north-4' or 'ap-southeast-1'. Refer to the region list in Huawei Cloud documentation.","cause":"The region ID provided is incomplete or incorrect.","error":"huaweicloudsdkcore.exceptions.exceptions.SdkException: region id 'cn-north' is invalid"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/huaweicloud/huaweicloud-sdk-python-v3","github":"https://github.com/huaweicloud/huaweicloud-sdk-python-v3","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}