High-performance PII redaction scanner using Go WASM (WASI)
Project description
pii-shield-wasi
High-performance PII redaction scanner powered by a core Go engine compiled to WebAssembly (WASI). It provides lightning-fast text analysis with hybrid heuristic and entropy-based validation.
Installation
pip install pii-shield-wasi
Usage
from pii_shield import Scanner
# Initialize the scanner with optional configuration overrides
scanner = Scanner({
"entropy_threshold": 4.0,
"confidence_score": 0.8
})
text = "Connecting to DB with password: MySuperSecretPassword123!"
redacted_text = scanner.redact(text)
print(redacted_text)
# Output might redact the high entropy secret based on context
Features
- Blazing Fast: Runs a highly optimized Go WASM binary in a native V8/Wasmtime environment.
- Zero-Allocation: Hot-paths have been optimized to prevent garbage collection overhead during large log streaming.
- Hybrid Scoring: Combines static whitelists, regex heuristics, and Shannon entropy for zero false-positives on things like UUIDs and IPv6 addresses.
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 pii_shield_wasi-2.0.0.tar.gz.
File metadata
- Download URL: pii_shield_wasi-2.0.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86ac94142c6c5d89448dc1c953734b2a733a68b353e9b3c4252a0c296d2a94e5
|
|
| MD5 |
389e19c6bbf93dec7ee017af8a5c9d27
|
|
| BLAKE2b-256 |
73998e1ab8ced853e5ae259fba053ccf5e65bdc38cb9c097c02f6ad7a9abfe9d
|
Provenance
The following attestation bundles were made for pii_shield_wasi-2.0.0.tar.gz:
Publisher:
publish-sdks.yml on aragossa/pii-shield
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pii_shield_wasi-2.0.0.tar.gz -
Subject digest:
86ac94142c6c5d89448dc1c953734b2a733a68b353e9b3c4252a0c296d2a94e5 - Sigstore transparency entry: 1397981622
- Sigstore integration time:
-
Permalink:
aragossa/pii-shield@f77d63572f201f6d23521cdc8f39f47d1bcaa747 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/aragossa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yml@f77d63572f201f6d23521cdc8f39f47d1bcaa747 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pii_shield_wasi-2.0.0-py3-none-any.whl.
File metadata
- Download URL: pii_shield_wasi-2.0.0-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
247fad1005c2534f4a370df4836bc9b52cf1a41b948744771b50dfaca613ba5d
|
|
| MD5 |
f2e0dd75a9daed08f6954753115c3755
|
|
| BLAKE2b-256 |
840a69b27a34f7eede7eddccf5baaef53633950279dd183222e2633675e1da0b
|
Provenance
The following attestation bundles were made for pii_shield_wasi-2.0.0-py3-none-any.whl:
Publisher:
publish-sdks.yml on aragossa/pii-shield
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pii_shield_wasi-2.0.0-py3-none-any.whl -
Subject digest:
247fad1005c2534f4a370df4836bc9b52cf1a41b948744771b50dfaca613ba5d - Sigstore transparency entry: 1397981638
- Sigstore integration time:
-
Permalink:
aragossa/pii-shield@f77d63572f201f6d23521cdc8f39f47d1bcaa747 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/aragossa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yml@f77d63572f201f6d23521cdc8f39f47d1bcaa747 -
Trigger Event:
push
-
Statement type: