A Python package to scrub PII
Project description
🫧 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.
Project details
Release history Release notifications | RSS feed
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 scrubadubdub-0.2.1.tar.gz.
File metadata
- Download URL: scrubadubdub-0.2.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1035-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78cb617bae1fcc56c4fb15576544cb839b810accd2b4c5577baa0339c06401d7
|
|
| MD5 |
8f07174abdb9ecb14483d0125d183c17
|
|
| BLAKE2b-256 |
b4ff0bb6932964ed1d9fa3f62412f7c5594329b4683afbb19757752c4819ddf6
|
File details
Details for the file scrubadubdub-0.2.1-py3-none-any.whl.
File metadata
- Download URL: scrubadubdub-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1035-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc681da8376cdfb4692a81d76a0df4840b0909fc71876702843f73e1f6dc73f6
|
|
| MD5 |
5d0cb3c2a9c52cb1e7c3b3e97c6b4016
|
|
| BLAKE2b-256 |
746d85811b8e64c93a700598ecd4882c43351209bb329b4143a010e6a1c9827b
|