Skip to main content

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 -o flag 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 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


⚠️ 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

redaction-0.1.6.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redaction-0.1.6-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file redaction-0.1.6.tar.gz.

File metadata

  • Download URL: redaction-0.1.6.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for redaction-0.1.6.tar.gz
Algorithm Hash digest
SHA256 ea13a2c5deb51453c226248618066d7d3d57d6ea565264effa936de1cb426e4c
MD5 2bf9dd89e2e89dff34eb033916af6285
BLAKE2b-256 8525c69ce72676397c42b4778bad76dba81d566306e6705d92c6fe142e72f00c

See more details on using hashes here.

File details

Details for the file redaction-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: redaction-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for redaction-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 33a4971b810c59bc14a0d1a0cad75a169c2808c290842e3dab905a0f98d5a4e9
MD5 40f2e0abc107a5bc5ad12fdb9e138264
BLAKE2b-256 774ced7b54d168ab50b123da1e8037cafff4a595c64e1f856c82847bd7139d71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page