Registry / aws / ibm-vpc

ibm-vpc

JSON →
library0.33.0pypypi✓ verified 84d ago

Python client library for IBM Cloud Virtual Private Cloud (VPC) services. Current version 0.33.0, released April 2026. Follows IBM Cloud API spec updates; released roughly quarterly.

pip install ibm-vpc
INSTALL
IMPORT
SIG · IBM-VPC
I
ibm-vpc
awspythonv0.33.0
Install
3.4s avg
Import
1849ms
Disk
36MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.33.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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 1.962s · 36.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.4s · import 1.736s · 37MB
36MB installed
● package 36MB
Code
Verified usage

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

VpcV1
from ibm_vpc import VpcV1
from ibm_vpc.vpc_v1 import VpcV1
Old pattern moved to top-level import in v0.28.0
IamAuthenticator
from ibm_cloud_sdk_core.authenticators import IamAuthenticator
from ibm_vpc import IamAuthenticator
Authenticators are in ibm-cloud-sdk-core, not ibm-vpc

Initialize VPC client with IAM API key and create a VPC.

import os from ibm_vpc import VpcV1 from ibm_cloud_sdk_core.authenticators import IamAuthenticator authenticator = IamAuthenticator( apikey=os.environ.get('IBM_CLOUD_API_KEY', '') ) service = VpcV1(authenticator=authenticator) service.set_service_url('https://us-south.iaas.cloud.ibm.com/v1') vpc_prototype = { 'name': 'my-vpc', 'resource_group': {'id': 'your-resource-group-id'} } response = service.create_vpc(vpc_prototype) print(response.get_result())
Debug
Known issues
breakingService URL changed from 'https://{region}.iaas.cloud.ibm.com/v1' to use set_service_url_for_region() in v0.28.0. Hardcoded URLs may break if region changes.
fix
Use service.set_service_url_for_region('us-south') instead of constructing URL manually.
affects: <0.28.0
breakingDefault API version updated from 2025-03-04 to 2025-04-22 in v0.28.0. Some response fields may have changed.
fix
Set explicit API version via set_headers or pass version parameter if you relied on old defaults.
affects: <0.28.0
gotchaCreating a VPC requires a resource_group.id; omitting it may cause a 400 error.
fix
Always include resource_group with a valid ID in the prototype.
affects: *
deprecatedThe 'owner_type' parameter in list_images was enhanced in v0.28.0. Old filter values may not work as expected.
fix
Check the latest API spec for valid owner_type values.
affects: >=0.28.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'ibm_vpc'
Package not installed or installed with wrong name.
fix
Run 'pip install ibm-vpc' (hyphen, not underscore).
Unauthorized: Access denied (401)
Invalid API key or missing permissions.
fix
Verify IBM_CLOUD_API_KEY is set correctly and has IAM access to VPC services.
AttributeError: module 'ibm_vpc' has no attribute 'VpcV1'
Incorrect import path after version changes.
fix
Use 'from ibm_vpc import VpcV1' (top-level import).
ibm_cloud_sdk_core.api_exception.ApiException: Error: Resource not found (404)
Service URL or region is incorrect.
fix
Set correct service URL for your region, e.g., service.set_service_url_for_region('us-south').
Upgrade
Version history
0.33.0latest on PyPI · released Apr 8, 2026
Audit
Dependencies
ibm-cloud-sdk-corerequiredCore SDK for authentication and HTTP
Agent activity
18 hits · last 30 days
node
18
Resources
ibm-vpc — pip install ibm-vpc · libregistry