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

Uploaded Python 3

File details

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

File metadata

  • Download URL: iris_security_gemini-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 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.0.tar.gz
Algorithm Hash digest
SHA256 a054b282e882fb5252f0c323dfd0cd7bb8b7bd1cc2ad6020e7303e5bb24828d2
MD5 703b3640bbddde13bcc6c5c8c64e8a46
BLAKE2b-256 fbfe47824008411fb3d51b789dd7fe530730a5cd9129936524dcdab1752216e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for iris_security_gemini-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3bbb7070d2d43fa81651ffe95f36b12da9555c9c3604558f7e0c17637ca6f8c
MD5 7fd667f8dd68ca356c35f995c65a2780
BLAKE2b-256 5ca5ed57394e473c7136931742706e37d9c9c0fba400e9b653aa91bc6194016e

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