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

redaction-0.1.4.tar.gz (3.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.4-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: redaction-0.1.4.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

Hashes for redaction-0.1.4.tar.gz
Algorithm Hash digest
SHA256 0994918c502f807bfdda0fca2eb7660820094d0fb3fec470edcebfb1bc1efb1e
MD5 0295cbd9ccff5ed648b7c497be9c1ee4
BLAKE2b-256 7236c79c5d9b1b0b082aa87501874446a81611e7b5302b78b1b7447bab78f9c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: redaction-0.1.4-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

Hashes for redaction-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7e93e64c3325914dff62293aef46c4bbae544691bd3892dff711a2242ec20c0e
MD5 87dc5f3b2e87814388e19a363718fec7
BLAKE2b-256 681f0de30d781d33448ec604060f9c15407b9c5b00106b335f503e74c3d62ea7

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