SDK integration
Connect your application
Once WrapSec is running, integrate it into your application with the Python or Node.js SDK. Every prompt is inspected before it reaches your LLM.
import wrapsec client = wrapsec.Client( api_key = os.environ["WRAPSEC_API_KEY"], base_url = os.environ["WRAPSEC_BASE_URL"], ) result = client.scan(user_input) if result.is_blocked: return # never reaches LLM forward_to_llm( result.sanitized_input if result.is_sanitized else user_input )