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.

Metadata

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 Provenance Actions
iris_security_gemini-0.2.1.tar.gz 7.9 kB Without provenance Details for iris_security_gemini-0.2.1.tar.gz

Built distribution (wheel)

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

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

Security for iris-security-gemini 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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