Skip to main content

IRIS governance for Google Gemini via google-genai

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iris_security_gemini-0.2.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iris_security_gemini-0.2.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file iris_security_gemini-0.2.1.tar.gz.

File metadata

  • Download URL: iris_security_gemini-0.2.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for iris_security_gemini-0.2.1.tar.gz
Algorithm Hash digest
SHA256 dab7023e6e4ea67285267f4fcd28ff0c34ddc64bc6949b853f2968523f6e5234
MD5 5994417514c3fc1e74b04a01e709d388
BLAKE2b-256 363d72ab75f5b98b34c864951266443b51d5880f735fa7b2734581b754cfd04f

See more details on using hashes here.

File details

Details for the file iris_security_gemini-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for iris_security_gemini-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 30759fd3f5d940c755e6677b3547ef6794a144eb1df99d6f342516b2ba027687
MD5 8ab3d019a67ee19f133c7031f21c88c7
BLAKE2b-256 f761488f53978780b50ac59ef99a2788577f4094945cc5a997f4df4affeac45c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page