Wipes out personal info from text files using Microsoft Presidio.
Built for devs who want something lightweight, fast, and Torch-free — a no-drama way to clean text.
pip install redactionredact file.txt
redact file.txt -o output.txt
redact --help- By default, the redacted version lands in the same directory as your input file.
- Use the
-oflag to specify your own output file.
Input:
My name is John Doe and my email is john@example.com.
Output:
My name is <PERSON> and my email is <EMAIL_ADDRESS>.
- Built on top of Microsoft Presidio's Analyzer + Anonymizer.
- No GPU, no Torch — just clean text ops.
- Designed for quick local use or integration in your data pipeline.
GitHub: https://github.com/tdiprima/redaction
No PII tool is perfect — always sanity-check the output before using it in production.