Skip to main content

iris-gemini

Drop-in IRIS governance for the Google GenAI Python SDK.

Replace one line:

# client = google.genai.Client()
client = IrisGemini(passport=passport)

Every client.models.generate_content() and generate_content_stream() call is evaluated against Cedar policy, recorded in the Evidence Vault, and enforced per IRIS_ENV (warn in dev, block in production).

Install

pip install iris-security-gemini

Quickstart

See examples/governed_gemini.py.

Environment

IRIS_ENV Behavior
dev Fail open - warnings to stderr, never block
production Fail closed - IrisViolationError on deny

Defaults to dev when unset.

Release files for iris-security-gemini 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iris-security-gemini 0.2.1
File Size Uploaded
iris_security_gemini-0.2.1.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iris-security-gemini 0.2.1
File Interpreter ABI Platform
iris_security_gemini-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / iris_security_gemini-0.2.1.tar.gz

Download URL iris_security_gemini-0.2.1.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dab7023e6e4ea67285267f4fcd28ff0c34ddc64bc6949b853f2968523f6e5234
BLAKE2b-256 checksum
How to use checksums
363d72ab75f5b98b34c864951266443b51d5880f735fa7b2734581b754cfd04f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / iris_security_gemini-0.2.1-py3-none-any.whl

Download URL iris_security_gemini-0.2.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30759fd3f5d940c755e6677b3547ef6794a144eb1df99d6f342516b2ba027687
BLAKE2b-256 checksum
How to use checksums
f761488f53978780b50ac59ef99a2788577f4094945cc5a997f4df4affeac45c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page