Registry /
devops / alibabacloud-cs20151215
Install & Compatibility
Where this runs
tested against v6.7.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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 1.674s · 53.7MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 8.5s · import 1.460s · 56MB
54MB installed
● package 54MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Client
✓ from alibabacloud_cs20151215.client import Client
✗ from alibabacloud_cs20151215 import Client
Client class is in the client submodule, not top-level
CreateClusterRequest
✓ from alibabacloud_cs20151215.models import CreateClusterRequest
✗ from alibabacloud_cs20151215 import CreateClusterRequest
Models are nested in the models submodule
models
✓ from alibabacloud_cs20151215 import models
Top-level models import works but submodule import is safer for type hinting
Initialize client and list clusters. Replace region_id and set env vars ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET.
import os
from alibabacloud_cs20151215.client import Client
from alibabacloud_cs20151215 import models
from alibabacloud_tea_openapi import models as open_api_models
# Configure credentials (use environment variables for security)
config = open_api_models.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)
# Describe clusters (list)
req = models.DescribeClustersV1Request()
resp = client.describe_clusters_v1(req)
print(resp.body.clusters)
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'alibabacloud_cs20151215'
Package not installed or incorrect environment.
fixRun: pip install alibabacloud-cs20151215
AttributeError: module 'alibabacloud_cs20151215' has no attribute 'Client'
Importing from wrong module; Client is in .client submodule.
fixUse: from alibabacloud_cs20151215.client import Client
UnboundRequiredParameterError: Required parameter 'name' is not bound
Missing required field in a request model (e.g., CreateClusterRequest).
fixEnsure all required fields are set on the model instance before passing to client.
Upgrade
Version history
6.7.0latest on PyPI · released Jun 11, 2026
Audit
Dependencies
alibabacloud_credentialsoptionalRequired for credential configuration (AK/SK, STS, etc.)
alibabacloud_tea_openapirequiredCore OpenAPI client infrastructure