google-cloud-service-usage
Google Cloud Service Usage API client library
What it is and what it does
This is the official Python client library for Google Cloud's Service Usage API. It wraps the gRPC and REST endpoints that let you programmatically enable, disable, and enumerate services within a Google Cloud project. The library handles authentication, serialization, and error handling so you can focus on service management logic rather than low-level protocol details.
You'd use it when you need to automate service activation (e.g., enabling Compute Engine or Cloud Storage on new projects), audit which services are active, or disable services as part of cleanup or cost-control workflows. It integrates with standard Google Cloud authentication mechanisms and follows the same patterns as other google-cloud-* libraries.
Use it for:
- Enable required APIs automatically when provisioning new Google Cloud projects as part of infrastructure-as-code workflows.
- Audit and report which services are currently enabled across a portfolio of GCP projects.
- Disable unused services to reduce attack surface and potential costs in existing projects.
- Build custom dashboards or compliance tools that track service activation status across teams.
- Integrate service management into CI/CD pipelines that set up ephemeral test environments.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python client for Google Cloud Service Usage API, enabling you to enable, disable, and list services on Google Cloud Platform projects.
Yes. This is the official, actively maintained client for a core GCP management API. It has no known vulnerabilities, low install friction, and permissive licensing. Install it if you need to manage GCP services programmatically; skip it if you only use the Cloud Console or gcloud CLI.
Install
google-cloud-service-usage on PyPI
pip
pip install google-cloud-service-usageuv
uv add google-cloud-service-usagepoetry
poetry add google-cloud-service-usageInstalling google-cloud-service-usage
Before you install
Low friction installation with a pure-Python wheel. Actively maintained, with recent activity. Depends on standard Google Cloud libraries (google-api-core, google-auth, grpcio, proto-plus, protobuf).
License in practice
Apache-2.0 permissive license allows use in commercial and open-source projects with minimal restrictions; you must include a copy of the license and note any modifications.
Quickstart
pip install google-cloud-service-usage
from google.cloud import serviceusage_v1
client = serviceusage_v1.ServiceUsageClient()
project_name = 'projects/my-project'
response = client.list_services(parent=project_name)
Requires Python >= 3.10. Requires Google Cloud authentication setup (service account key or Application Default Credentials).
Verify before relying
- Whether the package supports async/await patterns for concurrent service management operations.
- Performance characteristics when managing services across multiple projects or large numbers of services.
- Whether billing or quota limits apply to Service Usage API calls made through this client.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — google-api-core, google-auth, grpcio, proto-plus, protobuf |
| Maintenance | actively maintained — 72 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 280,332/month — #8,112 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: google_cloud_service_usage-1.17.0-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
google-cloud-billingProgrammatic access to Google Cloud Platform…
permissive · top 15,000 on PyPI
google-cloud-monitoringPython client library for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-quotasPython client library for Google Cloud Quotas…
permissive · top 15,000 on PyPI
google-cloud-resource-managerProvides a Python client for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-functionsPython client library for Google Cloud…
permissive · top 5,000 on PyPI
google-cloud-access-context-managerPython client library for Google Cloud Access…
permissive · top 5,000 on PyPI
google-cloud-monitoring-dashboardsPython client library for Google Cloud…
permissive · top 15,000 on PyPI
google-cloud-api-keysManages API keys for Google Cloud projects,…
permissive · top 15,000 on PyPI
google-cloud-loggingWrites log entries to Google Cloud Logging and…
permissive · top 1,000 on PyPI