AI Data Scrubber
The AI Data Scrubber is a lightweight privacy-focused tool designed to remove personal information from text documents before uploading them to Large Language Models (LLMs). You can use it to clean sensitive documents like resumes or contracts. It's not guaranteed to remove everything, so you should still check before you upload your file to a LLM.
It uses a mixture of regular expressions and named entity recognition models from spaCy. It's less accurate than asking a LLM to remove PII - but then you don't need to either run a LLM on your own machine, or upload your document to a LLM.
What It Does
The AI Data Scrubber removes personal information including:
- Names
- Email addresses
- Phone numbers
- Street addresses & ZIP codes
- URLs
- License plates
Currently, only US formats are supported.
You can run it via a command line interface or you can import it into your Python script.
Quick Start
# Install using pip
pip install ai-data-scrubber
# Download required language model (~560MB)
python -m spacy download en_core_web_lg
# Clean your file
ai-data-scrubber your-file.txt
Usage
Command Line:
# Auto-generates an output file with _scrubbed suffix
ai-data-scrubber input.txt
# Or you can specify the output file with the -o flag
ai-data-scrubber input.txt -o output.txt
Python:
from ai_data_scrubber import scrub_text, scrub_file
# Scrub text directly
cleaned = scrub_text("Your text with personal information here")
# Or scrub a file
scrub_file("input.txt", "output.txt")
Example
Original text:
John Smith
123 Main Street, Apt 4B
New York, NY 10001
Email: john.smith@example.com
Phone: (555) 123-4567
Cleaned text:
[NAME]
[ADDRESS], [UNIT]
New York, NY [ZIP_CODE]
Email: [EMAIL]
Phone: [PHONE]
Documentation
You can find further documentation in the docs folder:
- Installation Guide - Detailed installation including from source
- Performance Testing - How to run a testing script with 20 sample resumes
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions welcome! Feel free to submit a Pull Request.
Metadata
Release files for ai-data-scrubber 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ai_data_scrubber-0.1.1.tar.gz | 9.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_data_scrubber-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.0 kB
Release files / ai_data_scrubber-0.1.1.tar.gz
| Download URL | ai_data_scrubber-0.1.1.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b219bbb2c814f1065ff79da9324a44d969a2ae8d4454aa1b29c2143a340b871b
|
|
BLAKE2b-256 checksum How to use checksums |
676cd758a5b1f5685082c2a6ed44620b1706f0da21b1189294cc047ab3464b7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Release files / ai_data_scrubber-0.1.1-py3-none-any.whl
| Download URL | ai_data_scrubber-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26b4966b77ee131ae4b43011ad1994edd6ac1c0bc4753951bfdffa09da0025fa
|
|
BLAKE2b-256 checksum How to use checksums |
eb13439332f5551bb749df8ff82abfed82d5eda5d87922067957bb544e5c84a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Security for ai-data-scrubber 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.