Registry / gcp / google-cloud-redis-cluster

google-cloud-redis-cluster

JSON →
library0.4.0pypypi✓ verified 84d ago

Google Cloud Redis Cluster API client library for managing Redis clusters on GCP. Version 0.4.0 (pre-GA). Requires Python >=3.9.

pip install google-cloud-redis-cluster
INSTALL
IMPORT
SIG · GOOGLE-CLOUD-REDIS
G
google-cloud-redis-cluster
gcppythonv0.4.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.

CloudRedisClusterClient
from google.cloud.redis_cluster import CloudRedisClusterClient
from google.cloud.rediscluster import CloudRedisClusterClient
Package uses underscore in module name 'redis_cluster'
cloud_redis_cluster_v1
from google.cloud import redis_cluster_v1
import google.cloud.redis_cluster
Typically use the versioned import for full API surface

Initialize client and list Redis clusters. Requires GOOGLE_APPLICATION_CREDENTIALS env var or ADC.

from google.cloud.redis_cluster import CloudRedisClusterClient client = CloudRedisClusterClient() # List clusters in a region parent = "projects/{project_id}/locations/{location}".format( project_id=os.environ.get('GOOGLE_CLOUD_PROJECT', ''), location="us-central1" ) clusters = client.list_clusters(request={"parent": parent}) print(list(clusters))
Debug
Known issues
gotchaThe library is pre-GA (version <1.0). API surface may change without major version bumps.
fix
Pin to exact version and review changelog before upgrading.
affects: <1.0
gotchaDefault credentials (ADC) must be set up via GOOGLE_APPLICATION_CREDENTIALS or gcloud auth; otherwise calls fail with 'Could not automatically determine credentials.'
fix
Set GOOGLE_APPLICATION_CREDENTIALS to a service account key file or run 'gcloud auth application-default login'.
affects: all
deprecatedThe method 'list_clusters' and others may require an explicit request object in future versions (proto-plus migration).
fix
Use positional arguments or a request dict as shown in current docs.
affects: <=0.4.0
Errors
Common errors & fixes
ImportError: cannot import name 'CloudRedisClusterClient' from 'google.cloud'
Incorrect import path; missing '_cluster' in module name.
fix
Use: from google.cloud.redis_cluster import CloudRedisClusterClient
google.api_core.exceptions.PermissionDenied: 403 The caller does not have permission
Service account or user lacks required IAM roles (e.g., Redis Cluster Viewer).
fix
Grant appropriate IAM roles on the project or use a properly scoped service account.
Upgrade
Version history
0.4.0latest on PyPI · released Mar 26, 2026
Audit
Dependencies
google-authrequiredAuthentication required for API calls
google-cloud-corerequiredCore Google Cloud library
Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
google-cloud-redis-cluster — pip install google-cloud-redis-cluster · libregistry