Registry / devops / huaweicloudsdklive

huaweicloudsdklive

JSON →
library3.1.198pypypi✓ verified 83d ago

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.

pip install huaweicloudsdklive
INSTALL
IMPORT
SIG · HUAWEICLOUDSDKLIVE
H
huaweicloudsdklive
devopspythonv3.1.198
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LiveClient
from huaweicloudsdklive.v1 import LiveClient
from huaweicloudsdklive import LiveClient
LiveClient is under the v1 subpackage.
CreateDomainRequest
from huaweicloudsdklive.v1 import CreateDomainRequest

Initialize the Live client and list transcoding templates for a domain.

import os from huaweicloudsdkcore.auth.credentials import BasicCredentials from huaweicloudsdkcore.http.http_config import HttpConfig from huaweicloudsdklive.v1 import LiveClient, ListTranscodingsTemplateRequest ak = os.environ.get('HUAWEICLOUD_AK', '') sk = os.environ.get('HUAWEICLOUD_SK', '') region = os.environ.get('HUAWEICLOUD_REGION', 'cn-north-4') credentials = BasicCredentials(ak, sk) http_config = HttpConfig.get_default_config() client = LiveClient.new_builder() \ .with_credentials(credentials) \ .with_region(region) \ .with_http_config(http_config) \ .build() request = ListTranscodingsTemplateRequest(domain='play.example.com') try: response = client.list_transcodings_template(request) print(response) except Exception as e: print(e)
Debug
Known issues
breakingIn 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.
fix
Use per-service package 'huaweicloudsdklive' and import from 'huaweicloudsdklive.v1'.
affects: >=3.0.40
gotchaThe region string must be a valid Huawei Cloud region ID (e.g., 'cn-north-4'). Incorrect region will cause authentication or endpoint errors.
fix
Pass the correct region ID from the Huawei Cloud documentation.
affects: all
gotchaSome API methods require the domain parameter to be the live streaming domain (e.g., 'play.example.com'), not the full URL.
fix
Provide the domain name without protocol or path.
affects: all
Errors
Common errors & fixes
huaweicloudsdkcore.exceptions.exceptions.ServiceResponseException: status_code: 401, error_code: LIVE.100011001, ...
Invalid or expired AK/SK credentials.
fix
Verify your Access Key and Secret Key are correct and have not expired. Generate new ones from the Huawei Cloud console if needed.
AttributeError: module 'huaweicloudsdklive' has no attribute 'v1'
Old SDK structure used 'huaweicloudsdklive' as the import path without the 'v1' subpackage. After the breaking change, the correct import path is 'huaweicloudsdklive.v1'.
fix
Change import to 'from huaweicloudsdklive.v1 import ...'.
huaweicloudsdkcore.exceptions.exceptions.SdkException: region id 'cn-north' is invalid
The region ID provided is incomplete or incorrect.
fix
Use a valid region ID like 'cn-north-4' or 'ap-southeast-1'. Refer to the region list in Huawei Cloud documentation.
Upgrade
Version history
3.1.198latest on PyPI · released Jun 4, 2026
Audit
Dependencies
huaweicloudsdkcorerequiredCore SDK required for authentication and HTTP client.
Agent activity
6 hits · last 30 days
node
6
Resources
huaweicloudsdklive — pip install huaweicloudsdklive · libregistry