skillfed

google-cloud-org-policy

Google Cloud Org Policy API client library

google-cloud-org-policy v1.18.0 1.2M downloads/30d#4,166 on PyPI5,373
Permissive license Apache-2.0 Active released

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-policy

uv

uv add google-cloud-org-policy

poetry

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

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 organization policy clientconfigure governance rules gcporganization policy api pythoncloud resource governancegcp policy management library
google-cloudgovernanceinfrastructure-as-code

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

Provides a Python client library for managing…

permissive · top 15,000 on PyPI

google-cloud-access-context-manager

Python client library for Google Cloud Access…

permissive · top 5,000 on PyPI

google-cloud-dataplex

Python client library for Google Cloud…

permissive · top 1,000 on PyPI

google-cloud-resource-manager

Provides a Python client for Google Cloud…

permissive · top 1,000 on PyPI

google-cloud-functions

Python client library for Google Cloud…

permissive · top 5,000 on PyPI

google-cloud-monitoring

Python client library for Google Cloud…

permissive · top 1,000 on PyPI

google-cloud-workflows

Python client library for Google Cloud…

permissive · top 1,000 on PyPI

google-cloud-monitoring-dashboards

Python client library for Google Cloud…

permissive · top 15,000 on PyPI

google-cloud-build

Python client library for Google Cloud Build…

permissive · top 1,000 on PyPI

google-cloud-os-config

Python client library for Google Cloud OS…

permissive · top 5,000 on PyPI