Ultra-light privacy firewall for LLM prompts
Project description
hbp100
Ultra-light privacy firewall for LLM prompts.
hbp100 detects and masks common personally identifiable information (PII)
before text is sent to an LLM or another downstream service.
Install
pip install hbp100
Usage
from hbp100 import sanitize
result = sanitize("Email john@example.com and OTP 123456")
print(result.text)
# Email [EMAIL_1] and OTP [OTP_1]
print(result.metadata)
# {'[OTP_1]': '123456', '[EMAIL_1]': 'john@example.com'}
What It Masks
- Email addresses, phone numbers, URLs with tokens, API keys, bearer tokens, JWTs, passwords, OTPs, PINs, credit cards, IBANs, UPI IDs, government IDs, account identifiers, patient IDs, IMEI numbers, addresses, and similar data.
- Context-aware years: horoscope and calendar-conversion years can be kept while identity-related years are masked.
License
MIT
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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
hbp100-0.1.5-py3-none-any.whl
(54.4 kB
view details)
File details
Details for the file hbp100-0.1.5-py3-none-any.whl.
File metadata
- Download URL: hbp100-0.1.5-py3-none-any.whl
- Upload date:
- Size: 54.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e76e78fcc16f86cd526e6af800cabca4f03506948f77300f44643fa41301220d
|
|
| MD5 |
cbf692c250ec797cbda0eb3ce87bfea5
|
|
| BLAKE2b-256 |
c8876d2deead9533f48a881d36c79a620d888adc8746e72874aa269637e5d920
|