skillfed

google-cloud-bigquery-datapolicies

Google Cloud Bigquery Datapolicies API client library

google-cloud-bigquery-datapolicies v0.10.0 187.5K downloads/30d#9,962 on PyPI5,373
Permissive license Apache-2.0 Active released

What it is and what it does

This is Google's official Python client for the BigQuery Data Policy API, part of the broader Google Cloud Python SDK ecosystem. It wraps Google's gRPC-based data policy service, allowing developers to programmatically create, update, retrieve, and delete data policies that control access and masking rules for BigQuery datasets and tables.

The library depends on standard Google Cloud infrastructure (google-api-core, google-auth, grpcio, proto-plus, protobuf, grpc-google-iam-v1) and is maintained as part of the googleapis/google-cloud-python monorepo. It targets modern Python versions (3.10 and later) and is in Beta status, indicating active development but not yet guaranteed API stability.

Use it for:

  • Automate creation and enforcement of column-level masking policies across BigQuery tables in a data governance pipeline.
  • Programmatically grant or revoke data access policies based on organizational role changes or compliance requirements.
  • Integrate BigQuery data policy management into infrastructure-as-code workflows for reproducible data security configurations.
  • Build custom dashboards or audit tools that query and report on active data policies across BigQuery projects.
  • Manage data classification and access rules for multi-tenant or regulated environments where policies must be versioned and tracked.

Worth the install?

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

Provides a Python client library for managing BigQuery data policies in Google Cloud, enabling programmatic control over data access and masking rules.

Yes, if you need to manage BigQuery data policies programmatically within Google Cloud. The library is actively maintained, has low install friction, carries a permissive license, and integrates cleanly with standard Google Cloud authentication. No known vulnerabilities. Requires Python 3.10+ and a GCP project with BigQuery Data Policy enabled.

Install

google-cloud-bigquery-datapolicies on PyPI

pip

pip install google-cloud-bigquery-datapolicies

uv

uv add google-cloud-bigquery-datapolicies

poetry

poetry add google-cloud-bigquery-datapolicies

Installing google-cloud-bigquery-datapolicies

Before you install

Low friction install with standard Google Cloud dependencies. Active maintenance with recent releases; last commit 2026-08-14. Supports modern Python versions (3.10+).

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-bigquery-datapolicies

from google.cloud import bigquery_datapolicies_v1

client = bigquery_datapolicies_v1.DataPolicyServiceClient()
# Use client methods to manage data policies

Requires Google Cloud project with BigQuery Data Policy enabled, valid credentials configured, and Python >= 3.10.

Verify before relying

  • Whether the library supports all BigQuery data policy features or a subset of the API surface.
  • Performance characteristics when managing policies at scale.
  • Whether async/await patterns are supported for policy operations.

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 187,543/month — #9,962 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: google_cloud_bigquery_datapolicies-0.10.0-py3-none-any.whl

Development Status :: 4 - BetaIntended 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

bigquery data policy managementgoogle cloud data access controlbigquery column maskingdata policy python clientgoogle cloud python sdkbigquery governance apidata classification bigquery
google-cloudbigquerydata-governance

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-bigquery-connection

Manages BigQuery connections to external data…

permissive · top 15,000 on PyPI

google-cloud-bigquery-reservation

Python client library for managing BigQuery…

permissive · top 15,000 on PyPI

google-cloud-org-policy

Python client library for Google Cloud…

permissive · top 5,000 on PyPI

google-cloud-bigquery-logging

Python client library for Google Cloud BigQuery…

permissive · top 15,000 on PyPI

google-cloud-bigquery-storage

Provides a Python client library for reading…

permissive · top 1,000 on PyPI

google-cloud-dlp

Python client library for Google Cloud's…

permissive · top 1,000 on PyPI

google-cloud-bigquery-datatransfer

Python client library for scheduling and…

permissive · top 1,000 on PyPI

google-cloud-billing

Programmatic access to Google Cloud Platform…

permissive · top 15,000 on PyPI

google-cloud-dataflow-client

Provides a Python client library to manage…

permissive · top 1,000 on PyPI

google-cloud-functions

Python client library for Google Cloud…

permissive · top 5,000 on PyPI