Simple redaction script
Project description
🕵️ PII Redaction Tool
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.
🚀 Installation
pip install redaction
🧹 Usage
redact 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.
💡 Example
Input:
My name is John Doe and my email is john@example.com.
Output:
My name is <PERSON> and my email is <EMAIL_ADDRESS>.
🧠 Tech Notes
- Built on top of Microsoft Presidios 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
⚠️ Heads up:
No PII tool is perfect — always sanity-check the output before using it in production.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file redaction-0.1.5.tar.gz.
File metadata
- Download URL: redaction-0.1.5.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67ea372429260abd55a5b56e96486c315897d4907f892fb78eac0259d2a97c8c
|
|
| MD5 |
08644622ba59a419547ebc18f442380a
|
|
| BLAKE2b-256 |
948ad0aff200bce62449bd91918b8ccaf58ad4a355888e991ec6af33f6b37b33
|
File details
Details for the file redaction-0.1.5-py3-none-any.whl.
File metadata
- Download URL: redaction-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf102f5fbeb38b3a63e9485f06d4a0488642f24f023f82a812bcf566d62b819d
|
|
| MD5 |
4b93ea7029a090b65de22b6b7bf45fbc
|
|
| BLAKE2b-256 |
0e3ad26592f55866d8c1d089aa83f61179ca9272d6a49100b70940830fccf771
|