Metadata-Version: 2.4
Name: nexus-shield
Version: 0.1.0
Summary: Sub-10ms in-RAM PII redaction and guardrail proxy for LLMs (LiteLLM, LangChain, OpenAI).
Author-email: Nexus Shield Team <dev@nexusshield.ai>
License: MIT
Project-URL: Homepage, https://github.com/baturhantasdelen-sudo/core-ai-firewall
Project-URL: Documentation, https://api.nexusshield.ai
Project-URL: Repository, https://github.com/baturhantasdelen-sudo/core-ai-firewall
Project-URL: Bug Tracker, https://github.com/baturhantasdelen-sudo/core-ai-firewall/issues
Keywords: llm,pii,guardrails,security,litellm,langchain,presidio,latency,proxy
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Security
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Typing :: Typed
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# ⚡ 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

```python
from nexus_shield import NexusClient

nexus = NexusClient(base_url="https://api.nexusshield.ai/v1", api_key="nx_live_...")
config = nexus.get_proxy_config()
```
