Registry / aws / alibabacloud-vpc20160428

alibabacloud-vpc20160428

JSON →
library7.1.1pypypi✓ verified 84d ago

Alibaba Cloud Virtual Private Cloud (VPC) SDK for Python, version 7.1.1. Provides APIs to manage VPC resources such as VPCs, vSwitches, route tables, and NAT gateways. Released frequently alongside Alibaba Cloud API updates. Requires Python >=3.7.

pip install alibabacloud-vpc20160428
INSTALL
IMPORT
SIG · ALIBABACLOUD-VPC20
A
alibabacloud-vpc20160428
awspythonv7.1.1
Install
9.6s avg
Import
2076ms
Disk
66MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 2.182s · 64.7MB
glibc
py 3.103.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())
Debug
Known issues
breakingIn version 7.0.0, the package name changed from 'aliyun-python-sdk-vpc' to 'alibabacloud-vpc20160428' and import paths completely changed.
fix
Uninstall the old package 'aliyun-python-sdk-vpc' and install 'alibabacloud-vpc20160428'. Update imports to 'alibabacloud_vpc20160428...'
affects: <7.0.0
deprecatedThe use of 'access_key_id' and 'access_key_secret' directly in client config is deprecated in favour of providing a CredentialClient instance.
fix
Create a CredentialClient using alibabacloud_credentials and pass to the VPC client via the 'credential' parameter.
affects: >=7.0.0
gotchaRegion ID is required for most API calls. If not set in client config, you must pass it per request. Omitting can lead to a 'region not found' error.
fix
Set region_id in the open_api_models.Config before creating the client, or set it in the request object.
affects: >=7.0.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'alibabacloud_vpc20160428'
Package not installed or wrong Python environment.
fix
Run '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.
fix
Use 'from alibabacloud_vpc20160428.client import Client'
SDK.ServerError: The specified region does not exist.
Region ID not set in client or request.
fix
Set 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.
Agent activity
32 hits · last 30 days
node
26
Perplexity
1
Resources
alibabacloud-vpc20160428 — pip install alibabacloud-vpc20160428 · libregistry