Skip to main content

SignalVault Python SDK — AI audit logs and guardrails for OpenAI applications

Project description

signalvault

AI audit logs and guardrails for your OpenAI Python applications.

Installation

pip install signalvault openai

Quick Start

import os
from signalvault import SignalVaultClient

client = SignalVaultClient(
    api_key="sk_live_your_signalvault_key",
    openai_api_key=os.environ["OPENAI_API_KEY"],
    base_url="https://api.signalvault.io",
    environment="production",
)

# Use exactly like OpenAI SDK
response = client.chat.completions.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "Hello!"}],
)

print(response.choices[0].message.content)

Mirror Mode

Monitor without blocking — requests go directly to OpenAI and are audited asynchronously:

client = SignalVaultClient(
    api_key="sk_live_...",
    openai_api_key=os.environ["OPENAI_API_KEY"],
    mirror_mode=True,
)

Features

  • Automatic Logging — Every request and response is recorded
  • Pre-flight Guardrails — Block or redact requests before OpenAI
  • PII Detection — Detect emails, phone numbers, SSNs
  • Secret Detection — Block API keys and tokens
  • Token Limits — Enforce cost controls
  • Model Allowlists — Restrict which models can be used
  • Mirror Mode — Observe without blocking

License

MIT

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

signalvault-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

signalvault-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: signalvault-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for signalvault-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2a26fabcdebeea3dd52bd695bf11a04d3c92687952da81641059335f4965677e
MD5 c3c9b9701d3ba3a5dac14e6e76713a15
BLAKE2b-256 1160ea80532fac78b3f1d9cdf3b1bf5df842107a11f69f384da70fffb1f219c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: signalvault-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for signalvault-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5cd2580deb2a3bb86c866bbce55ce27b1eef69456327972fa84d6e9a01bc036
MD5 719179a23f82843f20198c2b0d861fd9
BLAKE2b-256 a3105460722baf20ea32cc09de7a5a8970475d46d68e2aaad89a4fa0b4e49290

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