Registry / aws / alibabacloud-cdn20180510

alibabacloud-cdn20180510

JSON →
library9.2.0pypypi✓ verified 84d ago

Alibaba Cloud CDN (Content Delivery Network) SDK for Python. Current version 9.0.0. Allows management of CDN domains, configurations, and monitoring. Released under the Alibaba Cloud SDK for Python umbrella. Active development with frequent minor releases.

pip install alibabacloud-cdn20180510
INSTALL
IMPORT
SIG · ALIBABACLOUD-CDN20
A
alibabacloud-cdn20180510
awspythonv9.2.0
Install
8.9s avg
Import
1658ms
Disk
55MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v9.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 1.762s · 54.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 8.9s · import 1.554s · 57MB
55MB installed
● package 55MB
Code
Verified usage

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

Client
from alibabacloud_cdn20180510.client import Client
import Client from alibabacloud_cdn20180510
Client is not a top-level export; must import from the .client module
DescribeCdnDomainDetailResponseBody
from alibabacloud_cdn20180510.models import DescribeCdnDomainDetailResponseBody
from alibabacloud_cdn20180510 import DescribeCdnDomainDetailResponseBody
Models are in the models subpackage, not top-level

Initializes the client and calls a simple API to describe a CDN domain detail.

import os from alibabacloud_cdn20180510.client import Client from alibabacloud_cdn20180510.models import DescribeCdnDomainDetailRequest from alibabacloud_tea_openapi.models import Config config = Config( access_key_id=os.environ.get('ALIBABA_CLOUD_ACCESS_KEY_ID', ''), access_key_secret=os.environ.get('ALIBABA_CLOUD_ACCESS_KEY_SECRET', ''), region_id='cn-hangzhou' ) client = Client(config) request = DescribeCdnDomainDetailRequest( domain_name='example.com' ) response = client.describe_cdn_domain_detail(request) print(response.body)
Debug
Known issues
breakingVersion 9.0.0 changed the import paths: Client is now in alibabacloud_cdn20180510.client instead of alibabacloud_cdn20180510. Also, models are in a separate subpackage. Code from v8.x will break.
fix
Update imports to use the .client and .models subpackages. See quickstart for correct pattern.
affects: >=9.0.0
deprecatedThe old authentication method using 'access_key_id' and 'access_key_secret' directly in Config is being phased out. Consider using credential providers like 'AlibabacloudCredentials'.
fix
Use alibabacloud_credentials to create a credential object and pass it to Config.
affects: >=7.0.0
gotchaAll API methods are generated and may have inconsistent naming (e.g., describe_* vs. list_*). Always check the model files for the exact method name.
fix
Refer to the official API documentation or inspect the client methods via dir(Client).
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'alibabacloud_cdn20180510'
Library not installed or installed with incorrect name.
fix
Run 'pip install alibabacloud-cdn20180510' (note hyphens, not underscores).
AttributeError: module 'alibabacloud_cdn20180510' has no attribute 'Client'
Wrong import path; Client is not in the top-level module.
fix
Use 'from alibabacloud_cdn20180510.client import Client'.
tealink.UnknownHostException: Failed to connect to cdn.aliyuncs.com port 443
Missing or incorrect region_id, or network connectivity issue.
fix
Ensure region_id is set correctly in Config (e.g., 'cn-hangzhou') and that your machine can reach the Alibaba Cloud endpoint.
Upgrade
Version history
9.2.0latest on PyPI · released May 19, 2026
Audit
Dependencies
alibabacloud_credentialsrequiredRequired for authentication using Alibaba Cloud credentials
alibabacloud_endpoint_utilrequiredUsed for endpoint resolution
alibabacloud_open_api_utilrequiredUsed for OpenAPI client initialization
alibabacloud_tea_utilrequiredCore runtime utilities
Agent activity
46 hits · last 30 days
node
38
OpenAI (training)
2
Perplexity
1
Resources
alibabacloud-cdn20180510 — pip install alibabacloud-cdn20180510 · libregistry