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.
⚙️ License
MIT © 2025
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
redaction-0.1.2.tar.gz
(3.3 kB
view details)
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.2.tar.gz.
File metadata
- Download URL: redaction-0.1.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77491dda4927f2f8db1a88d08648a53e45a37c1197d1f89add5ee6d5028090c3
|
|
| MD5 |
2d1e3efd787cd7f1014800c830fe1bff
|
|
| BLAKE2b-256 |
abcd53e7cc6e92ce740dcd895c79dda3b797a7daa3b326b6a3c511089b4bd1d5
|
File details
Details for the file redaction-0.1.2-py3-none-any.whl.
File metadata
- Download URL: redaction-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.8 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 |
d2b0fc309c71c5f553e2c4aecfd72ef0d4796a563c6570ce07e0d6ef22fb89d4
|
|
| MD5 |
0a30d768a585d99a156cde03a33430b5
|
|
| BLAKE2b-256 |
51f24a10b7528084586a19b4199a7ec11957c7af13d021caedd4983e144501c5
|