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
- Safe Share: Burner-safe strings for sharing with AI
- Zero Storage: No content is stored
- Deterministic: Same input = same output
Safe Share
from risk_mirror import RiskMirror
client = RiskMirror(api_key="your-api-key")
result = client.safe_share("sk-ABCD1234-XYZ", mode="full")
print(result.safe_share_text)
print(result.audit_summary)
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.2.tar.gz
(9.6 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.2.tar.gz.
File metadata
- Download URL: risk_mirror-1.0.2.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65e6bd33384dab4728c40b05a4840e7335a89c2a2d4dfc64fe3a6bc687421381
|
|
| MD5 |
aecf083997b1d8b9db1b1d0271aeaaca
|
|
| BLAKE2b-256 |
3c6ea3bbdd768262df8ccae498ddeaa3be459b242ef43d7f8a7d85a53680a03e
|
File details
Details for the file risk_mirror-1.0.2-py3-none-any.whl.
File metadata
- Download URL: risk_mirror-1.0.2-py3-none-any.whl
- Upload date:
- Size: 10.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 |
eeb7bd13fa2ba449b7bc6f7539f3f5c94e9790bf4882da56a12682a7ed45310e
|
|
| MD5 |
5952e806b44e9682c7342d6f229d22d4
|
|
| BLAKE2b-256 |
049e3f2bdbedf0842fdd58d7ff77cf899eac7d3c2d76e5ec017cd78a0f05f76f
|