google-cloud-bigquery-datapolicies
Google Cloud Bigquery Datapolicies API client library
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-datapoliciesuv
uv add google-cloud-bigquery-datapoliciespoetry
poetry add google-cloud-bigquery-datapoliciesInstalling 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
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-bigquery-connectionManages BigQuery connections to external data…
permissive · top 15,000 on PyPI
google-cloud-bigquery-reservationPython client library for managing BigQuery…
permissive · top 15,000 on PyPI
google-cloud-org-policyPython client library for Google Cloud…
permissive · top 5,000 on PyPI
google-cloud-bigquery-loggingPython client library for Google Cloud BigQuery…
permissive · top 15,000 on PyPI
google-cloud-bigquery-storageProvides a Python client library for reading…
permissive · top 1,000 on PyPI
google-cloud-dlpPython client library for Google Cloud's…
permissive · top 1,000 on PyPI
google-cloud-bigquery-datatransferPython client library for scheduling and…
permissive · top 1,000 on PyPI
google-cloud-billingProgrammatic access to Google Cloud Platform…
permissive · top 15,000 on PyPI
google-cloud-dataflow-clientProvides a Python client library to manage…
permissive · top 1,000 on PyPI
google-cloud-functionsPython client library for Google Cloud…
permissive · top 5,000 on PyPI