Official Tencent Cloud SDK for the Virtual Private Cloud (VPC) service. Provides a Python client for managing VPC resources such as subnets, route tables, security groups, and VPN connections. Current version 3.1.82, stable release cycle aligned with Tencent Cloud API updates.
pip install tencentcloud-sdk-python-vpcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize VPC client using environment credentials and list all VPCs.
Update all imports to include API version in path.
Check API docs for current model names; use 'models.<Action>Request'.
Create a new client per thread or use threading.Lock.
Pass region to VpcClient constructor; cannot change region per call.
Replace with: 'cred = credential.Credential(secret_id, secret_key)'
Use: from tencentcloud.vpc.v20170312 import vpc_client
Ensure using correct version subpackage: tencentcloud.vpc.v20170312
Add: from tencentcloud.vpc.v20170312 import models