--- id: google-cloud-org-policy version: "1.18.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # google-cloud-org-policy — Google Cloud Org Policy API client library License: permissive · Maintenance: active · Downloads: 1.2M/mo ## 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 above — 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 pip install google-cloud-org-policy uv add google-cloud-org-policy poetry add google-cloud-org-policy ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 1.2M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags google cloud organization policy client, configure governance rules gcp, organization policy api python, cloud resource governance, gcp policy management library, google-cloud, governance, infrastructure-as-code [View on SkillFed](https://skillfed.io/packages/google-cloud-org-policy) · [View on PyPI](https://pypi.org/project/google-cloud-org-policy/)