Registry /
aws / alibabacloud-vpc20160428
Install & Compatibility
Where this runs
tested against v7.1.1 · 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 2.182s · 64.7MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 9.6s · import 1.970s · 67MB
66MB installed
● package 66MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Client
✓ from alibabacloud_vpc20160428.client import Client
✗ from alibabacloud_vpc20160428 import Client
Client is in the client submodule, not at package top level.
Initialize the VPC client and call DescribeVpcs to list VPCs.
import os
from alibabacloud_credentials.client import Client as CredentialClient
from alibabacloud_vpc20160428.client import Client
from alibabacloud_tea_openapi import models as open_api_models
# Setup credentials
cred_config = open_api_models.Config()
cred_config.access_key_id = os.environ.get('ALIBABA_CLOUD_ACCESS_KEY_ID', '')
cred_config.access_key_secret = os.environ.get('ALIBABA_CLOUD_ACCESS_KEY_SECRET', '')
cred_client = CredentialClient(cred_config)
# Create VPC client
config = open_api_models.Config(
credential=cred_client,
# Optional: read region from env or set here
region_id=os.environ.get('ALIBABA_CLOUD_REGION_ID', 'cn-hangzhou')
)
client = Client(config)
# Example call: DescribeVpcs
from alibabacloud_vpc20160428 import models as vpc_models
request = vpc_models.DescribeVpcsRequest(
region_id=config.region_id,
page_size=10
)
response = client.describe_vpcs(request)
print(response.to_map())
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'alibabacloud_vpc20160428'
Package not installed or wrong Python environment.
fixRun 'pip install alibabacloud-vpc20160428' or check that you are using the correct virtual environment.
AttributeError: module 'alibabacloud_vpc20160428' has no attribute 'Client'
Importing Client from the package root instead of the correct submodule.
fixUse 'from alibabacloud_vpc20160428.client import Client'
SDK.ServerError: The specified region does not exist.
Region ID not set in client or request.
fixSet region_id in the Config object when creating the client, or pass it in the request parameters.
Upgrade
Version history
7.1.1latest on PyPI · released Apr 29, 2026
Audit
Dependencies
alibabacloud_credentialsrequiredRequired for authentication using AccessKey or STS token.
alibabacloud_tea_openapirequiredCore OpenAPI client library.