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.1.1.tar.gz (7.7 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.1.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iris_security_gemini-0.1.1.tar.gz
  • Upload date:
  • Size: 7.7 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.1.1.tar.gz
Algorithm Hash digest
SHA256 a3264e849128117e0f66b0e920c5fd39e1d90c793c3e7d44dcda42053ac21088
MD5 92ef0faf82e420a10e863f2f81ca9110
BLAKE2b-256 1a7e642e430799475ade2119c39e5a4f75dfacca57fecb679fe333ee7c89bcde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for iris_security_gemini-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45c8e7af05f2015aa1c0b13be30f55807ecbdadb88be779d23d631265084eb6a
MD5 18444e18ec07d272e7fc1c7a82f8a17a
BLAKE2b-256 3cbd1c1aa7a4a5496f76d9ff0f651f380be64f335d417015576c194fcca96a81

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