Deterministic AI Safety Toolkit - Python SDK & CLI
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.1.tar.gz
(8.7 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.1.tar.gz.
File metadata
- Download URL: risk_mirror-1.0.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
522595aa29b232f793ededdce07dfcafad0ccb8bcf848e32015767e29f829927
|
|
| MD5 |
a011230a0e307b59d9063679a4779400
|
|
| BLAKE2b-256 |
20a56ea7eabf26e9902f598faf727a74ba7cd5c09251f7df643d3e30e23d93f1
|
File details
Details for the file risk_mirror-1.0.1-py3-none-any.whl.
File metadata
- Download URL: risk_mirror-1.0.1-py3-none-any.whl
- Upload date:
- Size: 9.2 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 |
6e1e89d997d4dcc30999ab6257de6c0fff59ccff0302d3b9b387c64d4a121627
|
|
| MD5 |
7363e994df53432bc64d2edd35ffb380
|
|
| BLAKE2b-256 |
503b40858ac558f074543bc25a1e9cc3aca92feb9aa8adf4603782fdbf257bf9
|