Sub-10ms in-RAM PII redaction and guardrail proxy for LLMs (LiteLLM, LangChain, OpenAI).
Project description
⚡ Nexus Shield: Sub-10ms PII Guardrail for LLMs
Nexus Shield is an in-RAM pattern buffer proxy designed to strip PII (SSN, Credit Cards, API Keys, Emails) before forwarding payloads to OpenAI, LiteLLM, or LangChain—without killing stream TTL.
📊 Performance Comparison (300 Payloads Benchmark)
| Engine | Avg Latency (P50) | P99 Latency | Memory Overhead |
|---|---|---|---|
| Nexus Shield (In-RAM) | < 2.4 ms | < 6.1 ms | ~12 MB |
| Standard Python Regex | 18.2 ms | 45.1 ms | ~45 MB |
| MS Presidio (spaCy NER) | 120.5 ms | 245.0 ms | ~450 MB |
🚀 Quick Start
from nexus_shield import NexusClient
nexus = NexusClient(base_url="https://api.nexusshield.ai/v1", api_key="nx_live_...")
config = nexus.get_proxy_config()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nexus_shield-0.1.0.tar.gz
(2.3 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 nexus_shield-0.1.0.tar.gz.
File metadata
- Download URL: nexus_shield-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f7cf2dae8f5849263f5318b4314bf4fe668e61ce9491eb2360622167e0b1b6a
|
|
| MD5 |
0d37f01c9fbe3f365a4395f3e69208c0
|
|
| BLAKE2b-256 |
11b3fbc982c577e8cf88de95b6e767ca340a6b80f8c18e85f79c7212fac7a1f8
|
File details
Details for the file nexus_shield-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nexus_shield-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9749e60261790005966ab17801e55bdf8211cba363b3ef7a65e8648c1ca56e6e
|
|
| MD5 |
4c273880ed19130e0a4af04c9d947b96
|
|
| BLAKE2b-256 |
17a05c677391d0ecbbef6b61ce87ffac315847ef30ca2e1a8113f940408231f2
|