Direct core · Python
Python core
Use the Python package when your code owns the value before it reaches a logger, request, store, or model.
01 · Python
Scan and redact
The result keeps sanitized text and findings together so callers do not need to reconstruct replacements.
import redact_secret
result = redact_secret.scan_and_redact("API_KEY=SYNTHETIC_REVOKED_CONTEXT_VALUE")
print(result.text, len(result.findings))02 · Python
What the result means
Findings are evidence of what the configured detectors saw. No findings is not proof that the input is safe.