Registry / aws / alibabacloud-ecs20140526

alibabacloud-ecs20140526

JSON →
library7.8.5pypypi✓ verified 85d ago

Official Alibaba Cloud Python SDK for Elastic Compute Service (ECS) API version 2014-05-26. Current version is 7.7.4, actively maintained with monthly releases aligning with Alibaba Cloud API updates.

pip install alibabacloud-ecs20140526
INSTALL
IMPORT
SIG · ALIBABACLOUD-ECS20
A
alibabacloud-ecs20140526
awspythonv7.8.5
Install
9.7s avg
Import
2179ms
Disk
67MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v7.8.5 · 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 2.298s · 65.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 9.7s · import 2.060s · 68MB
67MB installed
● package 67MB
Code
Verified usage

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

Client
from alibabacloud_ecs20140526.client import Client
from alibabacloud_ecs20140526 import Client
Client is in submodule, not top-level.
CreateInstanceRequest
from alibabacloud_ecs20140526.models import CreateInstanceRequest
from alibabacloud_ecs20140526 import CreateInstanceRequest
Models are in .models submodule.

Initialize client with credentials from environment variables, describe instances.

import os from alibabacloud_ecs20140526.client import Client from alibabacloud_ecs20140526 import models from alibabacloud_tea_openapi import models as open_api_models 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', ''), endpoint='ecs-cn-hangzhou.aliyuncs.com' ) client = Client(config) req = models.DescribeInstancesRequest() resp = client.describe_instances(req) print(resp.body.instances.instance)
Debug
Known issues
breakingIn v7.x, the SDK switched to Tea-based models and client. Old v2.x code using 'from aliyunsdkecs.request.v20140526' is deprecated and will not work with this package.
fix
Use 'from alibabacloud_ecs20140526.client import Client' and Tea models.
affects: >=7.0.0
deprecatedDirect instantiation of request models without namespace was deprecated. Models must be imported from .models submodule.
fix
Use 'from alibabacloud_ecs20140526.models import CreateInstanceRequest'.
affects: >=6.0.0
gotchaEndpoint must be explicitly provided; there is no automatic detection. Using the wrong region endpoint will cause timeout or auth errors.
fix
Set config.endpoint to the correct regional endpoint, e.g., 'ecs-cn-hangzhou.aliyuncs.com'.
affects: all
gotchaPage size for DescribeInstances defaults to 10; large accounts may miss instances if not using pagination.
fix
Set request.max_results to a higher value (max 100) and handle NextToken in loop.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'alibabacloud_ecs20140526'
Package not installed or wrong Python environment.
fix
Run 'pip install alibabacloud-ecs20140526' (note underscores become hyphens in pip).
AttributeError: module 'alibabacloud_ecs20140526' has no attribute 'Client'
Importing Client from top-level package instead of submodule.
fix
Use 'from alibabacloud_ecs20140526.client import Client'.
UnsupportedOperation: This API version is not supported in this SDK.
Using old aliyunsdkcore (v2) with new alibabacloud SDK; incompatible.
fix
Uninstall aliyunsdkcore and use alibabacloud-tea and alibabacloud-credentials.
Upgrade
Version history
7.8.5latest on PyPI · released Jun 15, 2026
Audit
Dependencies
alibabacloud-tearequiredCore Tea framework required for HTTP transport and serialization.
alibabacloud-credentialsrequiredCredential management (access keys, STS, etc.)
Agent activity
33 hits · last 30 days
node
28
Perplexity
1
Resources
alibabacloud-ecs20140526 — pip install alibabacloud-ecs20140526 · libregistry