skillfed

google-cloud-service-usage

Google Cloud Service Usage API client library

google-cloud-service-usage v1.17.0 280.3K downloads/30d#8,112 on PyPI5,373
Permissive license Apache-2.0 Active released

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-usage

uv

uv add google-cloud-service-usage

poetry

poetry add google-cloud-service-usage

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet

Tags

google cloud service usage apienable disable gcp servicesmanage cloud platform servicesservice usage client librarygcp service managementcloud service enablementgoogle cloud api client
gcp-clientcloud-managementapi-wrapper

More Internet packages