Prompt Scrub Pad
Prompt Scrub Pad is a local CLI and small desktop pad for redacting sensitive text before pasting prompts, tickets, logs, or snippets into AI tools.
It is intentionally offline-first. Text stays on your machine, and the default rule set catches common accidental disclosures: API keys, environment variable secrets, AWS access keys, private keys, email addresses, IP addresses, phone numbers, and credit-card-like numbers.
Install
python3 -m pip install prompt-scrub-pad
For local development:
python3 -m pip install -e .
CLI Usage
Scrub a file:
prompt-scrub-pad examples/support-ticket.txt
Read from stdin:
pbpaste | prompt-scrub-pad | pbcopy
Show a diff:
prompt-scrub-pad examples/support-ticket.txt --diff
Emit JSON for a preflight check:
prompt-scrub-pad prompt.txt --json --fail-on-change
Useful switches:
prompt-scrub-pad prompt.txt --redact-urls
prompt-scrub-pad prompt.txt --keep-emails
prompt-scrub-pad prompt.txt --keep-ips
prompt-scrub-pad prompt.txt --output scrubbed.txt
Desktop Pad
Launch the Tkinter pad:
prompt-scrub-gui
or:
prompt-scrub-pad --gui
Paste text into the top area, choose which rules are active, scrub, and copy the cleaned result from the bottom area.
Python API
from prompt_scrub_pad import ScrubProfile, scrub_text
result = scrub_text(
"Send to jane@example.com with OPENAI_API_KEY=sk-abc123456789012345678901234",
ScrubProfile(redact_urls=True),
)
print(result.text)
print(result.findings)
Configuration
Prompt Scrub Pad currently uses command flags and the ScrubProfile Python object for configuration. The defaults favor prompt-sharing safety while leaving URLs visible unless --redact-urls is set.
Development
python3 -m pip install -e .
python3 -m pytest
python3 -m build --no-isolation
python3 -m twine check dist/*
Contributing
Issues and pull requests are welcome. Keep rules explainable, deterministic, and local. New detectors should include tests covering both redaction and an opt-out path where appropriate.
Metadata
Release files for prompt-scrub-pad 0.1.0
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 | Actions |
|---|---|---|---|---|
| prompt_scrub_pad-0.1.0.tar.gz | 8.7 kB | Without provenance | Details for prompt_scrub_pad-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prompt_scrub_pad-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for prompt_scrub_pad-0.1.0-py3-none-any.whl |
Total release size: 16.9 kB
Release files / prompt_scrub_pad-0.1.0.tar.gz
| Download URL | prompt_scrub_pad-0.1.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d920a15396702ebf6549a142cee2b378d6bfeb0da042f34c225ad916febfff4
|
|
BLAKE2b-256 checksum How to use checksums |
652cfb54d76e14b2649d55fb44e0b44f4816599c2ec97aff6c15b81783b71d38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / prompt_scrub_pad-0.1.0-py3-none-any.whl
| Download URL | prompt_scrub_pad-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93593cfac5b0951cddf0b408e36cc1864808bbc0199aa17d53a38715059c8a2b
|
|
BLAKE2b-256 checksum How to use checksums |
6040db88800022001bd12791dc8ac3cb698323abebc741abd35c76f73ea9325b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for prompt-scrub-pad 0.1.0
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.