Deterministic AI Safety Toolkit - Python SDK
Project description
Risk Mirror SDK - Python
Deterministic AI Safety Toolkit for prompt security.
Installation
pip install risk-mirror
Quick Start
from risk_mirror import RiskMirror
# Initialize client
client = RiskMirror(api_key="your-api-key")
# Scan for safety issues
result = client.scan("Check this text for PII and secrets")
print(result.verdict) # SAFE, REVIEW, or HIGH_RISK
print(result.findings) # List of findings
print(result.safe_output) # Redacted text
Features
- PII Detection: Email, phone, SSN, etc.
- Secrets Detection: API keys, tokens, passwords
- Injection Detection: Prompt injection attempts
- Zero Storage: No content is stored
- Deterministic: Same input = same output
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
risk_mirror-1.0.0.tar.gz
(6.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file risk_mirror-1.0.0.tar.gz.
File metadata
- Download URL: risk_mirror-1.0.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8d2bf7a62becc2b6b3a2b89555bbaaafe954acd708575b0d588d5a54690df4f
|
|
| MD5 |
7d5aae7bc6e37954bf7c7fa556002346
|
|
| BLAKE2b-256 |
40424c7fb6b53eb64a624503d1da082b90fa11283bc9994de51a2c27744fe60d
|
File details
Details for the file risk_mirror-1.0.0-py3-none-any.whl.
File metadata
- Download URL: risk_mirror-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac4274cdde65b32a2e30a9c555edc35ee184e45577aad29b7f67e298092e2e71
|
|
| MD5 |
9af26ff7701fab1acea390fb8ba26688
|
|
| BLAKE2b-256 |
f904a6c8f3818eca1129bb3b2dffcff5c43aae8b26ca8f60efff9625f56ed2b4
|