google-cloud-org-policy
Google Cloud Org Policy API client library
What it is and what it does
google-cloud-org-policy is the official Python client for Google Cloud's Organization Policy API. It provides a programmatic interface to define and enforce governance rules across your Google Cloud resource hierarchy—allowing you to set constraints on how resources can be configured, managed, and used at scale. The library wraps the underlying gRPC API with Python-friendly abstractions, handling authentication, serialization, and transport details automatically.
The package depends on google-api-core, google-auth, grpcio, proto-plus, and protobuf to manage API communication and credential handling. It targets modern Python versions (3.10 and later) and is actively maintained by Google. Use it when you need to programmatically create, update, list, or delete organization policies as part of infrastructure-as-code workflows or governance automation.
Use it for:
- Enforce security and compliance policies across multiple Google Cloud projects via Infrastructure-as-Code
- Automate policy deployment and updates in large-scale multi-project environments
- Integrate organization policy management into CI/CD pipelines for governance workflows
- Query and audit existing policies across your resource hierarchy programmatically
- Build custom governance dashboards or policy compliance reporting tools
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for Google Cloud Organization Policy API, enabling programmatic configuration of governance rules across Google Cloud resources.
Yes. This is an official, actively maintained Google Cloud client library with no known vulnerabilities, low install friction, and permissive licensing. Install it if you need to manage Organization Policy rules programmatically in Python. Requires Python 3.10+ and a Google Cloud project with the Organization Policy API enabled and proper authentication configured.
Install
google-cloud-org-policy on PyPI
pip
pip install google-cloud-org-policyuv
uv add google-cloud-org-policypoetry
poetry add google-cloud-org-policyInstalling google-cloud-org-policy
Before you install
Low install friction; pure Python wheel with standard Google Cloud dependencies. Active maintenance with recent release (53 days old) and no known vulnerabilities.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install google-cloud-org-policy
from google.cloud import orgpolicy_v1
client = orgpolicy_v1.OrgPolicyClient()
# Use client methods to manage organization policies
Requires Python >= 3.10; Google Cloud project with Organization Policy API enabled and authentication configured (service account or user credentials).
Verify before relying
- Specific API methods and resource types supported by this version
- Whether async/await patterns are supported in the client
- Rate limiting or quota constraints for Organization Policy API calls
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 — 53 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,245,873/month — #4,166 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: google_cloud_org_policy-1.18.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-datapoliciesProvides a Python client library for managing…
permissive · top 15,000 on PyPI
google-cloud-access-context-managerPython client library for Google Cloud Access…
permissive · top 5,000 on PyPI
google-cloud-dataplexPython client library for Google Cloud…
permissive · top 1,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-monitoringPython client library for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-workflowsPython client library for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-monitoring-dashboardsPython client library for Google Cloud…
permissive · top 15,000 on PyPI
google-cloud-buildPython client library for Google Cloud Build…
permissive · top 1,000 on PyPI
google-cloud-os-configPython client library for Google Cloud OS…
permissive · top 5,000 on PyPI