Installation
Import Quick Reference
imports.py
Quick Start
app.py
Integration Patterns
Direct Scanning
Manual scan calls with full control
OpenAI Wrapper
Drop-in replacement for OpenAI client
Anthropic Wrapper
Drop-in replacement for Anthropic client
Async SDK
High-performance async operations
Pattern Comparison
| Pattern | Use Case | Blocking | Control |
|---|---|---|---|
| Direct scan | Custom logic | Manual | Full |
| Decorators | Function protection | Configurable | Medium |
| Wrappers | LLM API protection | Automatic | Low |
| Async | High throughput | Configurable | Full |
Direct Scanning
scan_example.py
Decorator Pattern
decorated.py
LLM Wrappers
openai_example.py
Async SDK
async_example.py
Context Manager
context_example.py
Configuration
config_example.py
