Skip to main content

🫧 scrub 🫧

scrub is a lightweight, extensible Python package designed to remove Personally Identifiable Information (PII) from any text input. It leverages advanced Machine Learning algorithms to detect PII and provides multiple levels of scrubbing to ensure optimal anonymization of sensitive information. safeguarding user privacy.

Installation

Install the latest version of scrub from PyPI:

pip install scrubadubdub

Key Features

  • Advanced PII detection using Machine Learning algorithms.
  • Support for a wide range of PII types (names, email addresses, phone numbers, etc.).
  • Customizable detection threshold and levels of sanitization.
  • Extensible architecture to allow for the addition of new PII types and algorithms.

Basic Usage

from scrubadubdub import Scrub

scrubber = Scrub()
input_text = "My name is John Doe and my email address is john.doe@email.com, and my phone number is 123-456-7890"
scrubbed_text = scrubber.scrub(input_text)
print(scrubbed_text)
My name is [REDACTED-NAME] and my email address is [REDACTED-EMAIL], and my phone number is [REDACTED-PHONE]

License

scrub is licensed under the MIT License. See LICENSE for more details.

Metadata

Release files for scrubadubdub 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scrubadubdub 0.2.1
File Size Uploaded
scrubadubdub-0.2.1.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scrubadubdub 0.2.1
File Interpreter ABI Platform
scrubadubdub-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / scrubadubdub-0.2.1.tar.gz

Download URL scrubadubdub-0.2.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
78cb617bae1fcc56c4fb15576544cb839b810accd2b4c5577baa0339c06401d7
BLAKE2b-256 checksum
How to use checksums
b4ff0bb6932964ed1d9fa3f62412f7c5594329b4683afbb19757752c4819ddf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1035-azure

Release files / scrubadubdub-0.2.1-py3-none-any.whl

Download URL scrubadubdub-0.2.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc681da8376cdfb4692a81d76a0df4840b0909fc71876702843f73e1f6dc73f6
BLAKE2b-256 checksum
How to use checksums
746d85811b8e64c93a700598ecd4882c43351209bb329b4143a010e6a1c9827b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1035-azure

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page