skillfed

google-cloud-billing

Google Cloud Billing API client library

google-cloud-billing v1.20.0 687.4K downloads/30d#5,346 on PyPI5,373
Permissive license Apache-2.0 Active released

What it is and what it does

This is Google's official Python client library for the Cloud Billing API, enabling developers to query and manage billing information for Google Cloud Platform projects programmatically. It wraps the underlying gRPC service with a Pythonic interface, handling authentication and serialization automatically.

The library is built on standard Google Cloud infrastructure (google-api-core, google-auth, grpcio, proto-plus, protobuf) and requires Python 3.10 or later. It is actively maintained, production-stable, and carries no known security vulnerabilities. Use it when you need to integrate GCP billing data into dashboards, cost-tracking systems, or automation workflows.

Use it for:

  • Retrieve billing account details and project billing status for cost tracking dashboards.
  • Automate billing queries in CI/CD pipelines to monitor project spend and enforce budget policies.
  • Build custom cost analysis tools that aggregate billing data across multiple GCP projects.
  • Integrate GCP billing information into third-party financial or resource management systems.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Programmatic access to Google Cloud Platform billing data and account management through the Cloud Billing API.

Yes. This is Google's official, actively maintained client library for Cloud Billing with no known vulnerabilities, low install friction, and permissive licensing. Install it if you need programmatic access to GCP billing data; it is the standard tool for that task.

Install

google-cloud-billing on PyPI

pip

pip install google-cloud-billing

uv

uv add google-cloud-billing

poetry

poetry add google-cloud-billing

Installing google-cloud-billing

Before you install

Low friction installation via wheel; actively maintained with recent releases. Depends on standard Google Cloud libraries (google-api-core, google-auth, grpcio, proto-plus, protobuf, grpc-google-iam-v1), all widely used and stable.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install google-cloud-billing

from google.cloud import billing_v1

client = billing_v1.CloudBillingClient()
project_name = 'projects/my-project'
project = client.get_project(name=project_name)

Requires Google Cloud authentication credentials (service account key or Application Default Credentials) and an active GCP project with billing enabled.

Verify before relying

  • Whether the package supports querying historical billing data or only current account state.
  • Scope of billing operations supported (e.g., can it modify billing settings or only read them).
  • Performance characteristics when querying large billing datasets.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 6 — google-api-core, google-auth, grpcio, proto-plus, protobuf, grpc-google-iam-v1
Maintenance actively maintained — 72 days since the last release
Last repo commit
First released
Downloads 687,442/month — #5,346 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: google_cloud_billing-1.20.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 billing api clientgcp billing management pythoncloud billing account queriesgoogle cloud cost managementbilling data retrieval gcp
google-cloudbilling-apigcp

More Internet packages

botocore

Botocore provides low-level, data-driven access…

permissive · top 100 on PyPI

aiobotocore

Provides an async client for AWS services using…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

filelock

Provides a platform-independent file locking…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

googleapis-common-protos

Provides common Protocol Buffer message…

permissive · top 100 on PyPI

google-cloud-api-keys

Manages API keys for Google Cloud projects,…

permissive · top 15,000 on PyPI

google-cloud-dataplex

Python client library for Google Cloud…

permissive · top 1,000 on PyPI

google-cloud-quotas

Python client library for Google Cloud Quotas…

permissive · top 15,000 on PyPI

google-cloud-service-usage

Provides a Python client for Google Cloud…

permissive · top 15,000 on PyPI

google-cloud-tpu

Provides a Python client library to interact…

permissive · top 15,000 on PyPI

google-cloud-dataflow-client

Provides a Python client library to manage…

permissive · top 1,000 on PyPI

google-ads-admanager

Python client library for Google Ad Manager…

permissive · top 15,000 on PyPI

google-cloud-functions

Python client library for Google Cloud…

permissive · top 5,000 on PyPI

google-cloud-datacatalog

A Python client library for Google Cloud Data…

permissive · top 1,000 on PyPI

google-shopping-merchant-products

Python client library for Google Shopping…

permissive · top 15,000 on PyPI