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
Metadata
Release files for hbp100 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hbp100-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Release files / hbp100-0.1.5-py3-none-any.whl
| Download URL | hbp100-0.1.5-py3-none-any.whl |
|---|---|
| Size | 54.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e76e78fcc16f86cd526e6af800cabca4f03506948f77300f44643fa41301220d
|
|
BLAKE2b-256 checksum How to use checksums |
c8876d2deead9533f48a881d36c79a620d888adc8746e72874aa269637e5d920
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for hbp100 0.1.5
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.