Registry / aws / cloudbridge

cloudbridge

JSON →
library3.2.0pypypi✓ verified 80d ago

CloudBridge provides a unified abstraction layer over multiple cloud providers (AWS, GCP, Azure, OpenStack), enabling multi-cloud deployments with a single API. Current version 3.2.0, released 2025-03-15; releases occur every few months.

pip install cloudbridge
INSTALL
IMPORT
SIG · CLOUDBRIDGE
C
cloudbridge
awspythonv3.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

cloudbridge
import cloudbridge
from cloudbridge import CloudProvider
CBLogger
from cloudbridge import CBLogger
get_version
from cloudbridge import get_version

Initialises a CloudProvider using OpenStack credentials from environment variables and lists compute instances.

import os from cloudbridge.cloud import CloudProvider # Set credentials via environment variables os.environ['OS_AUTH_URL'] = 'your-auth-url' os.environ['OS_USERNAME'] = 'your-username' os.environ['OS_PASSWORD'] = 'your-password' os.environ['OS_PROJECT_NAME'] = 'your-project' # Create a provider (OpenStack here, but could be AWS, GCP, etc.) provider = CloudProvider('openstack') # List instances for instance in provider.compute.instances.list(): print(instance.id, instance.name)
Debug
Known issues
breakingIn version 3.0, the API was redesigned. Crucial changes: 'CloudProvider' now requires a provider string ('aws', 'gcp', 'azure', 'openstack'); old cloudbridge.aws.* patterns no longer work.
fix
Update imports: use from cloudbridge.cloud import CloudProvider and instantiate with provider name.
affects: <3.0.0
breakingIn version 3.0, the 'compute', 'storage', 'network' services are accessed via provider.compute, provider.storage, provider.network (not provider.compute.instances? None, but resource methods changed). For example: 'instances.list()' returns paginated results; use .all() for all instances or iterate.
fix
Review the new resource hierarchy in the docs. For listing all instances: provider.compute.instances.all() or iterate over pages.
affects: <3.0.0
deprecatedThe 'dns' service (provider.dns) has been deprecated and will be removed in a future version. Use provider.network.dns instead.
fix
Use provider.network.dns instead of provider.dns.
affects: >=3.0.0
gotchaWhen using AWS, the region must be set via an environment variable or explicitly in the provider configuration; CloudBridge does not default to us-east-1. If not set, operations may fail with region-related errors.
fix
Set AWS_DEFAULT_REGION environment variable or pass region in config dict: CloudProvider('aws', config={'region_name': 'us-west-2'})
affects: all
gotchaFor OpenStack, the credential environment variables are OS_* (e.g., OS_USERNAME). Using other cloud provider env vars (AWS_*) will not work; you must use the correct ones for each provider.
fix
Refer to the CloudBridge docs for the exact environment variable names per provider.
affects: all
Upgrade
Version history
3.2.0latest on PyPI · released Sep 7, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
49 hits · last 30 days
node
42
OpenAI (training)
1
Resources
cloudbridge — pip install cloudbridge · libregistry