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.0.tar.gz (7.8 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.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iris_security_gemini-0.2.0.tar.gz
  • Upload date:
  • Size: 7.8 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.0.tar.gz
Algorithm Hash digest
SHA256 7e585ed36045817df110f83f9633d9cc652f25340c1f4918f233679424c1dc07
MD5 257a4d318799bc24a285ccfdaae0dd81
BLAKE2b-256 9ab7077c3117e01628fac29d9b3c3f19171ba5fe12cf98f588d125d4df4796cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for iris_security_gemini-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abb322deb79517ade65f6262815ed68760c7d130eb0fad22b71cadab995b8911
MD5 06b8de0b715951c785421136418117f2
BLAKE2b-256 50e64413736c6cfe36ed2a7b5d898211fbeb1288db887cae586d6a4fc5ef83bb

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