Skip to main content

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 PiiShield, PiiShieldConfig

# Initialize the scanner with optional configuration overrides
shield = PiiShield(PiiShieldConfig(
    entropy_threshold=4.0,
    confidence_score=0.8
))

text = "Connecting to DB with password: MySuperSecretPassword123!"
redacted_text = shield.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pii_shield_wasi-2.1.1.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pii_shield_wasi-2.1.1-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file pii_shield_wasi-2.1.1.tar.gz.

File metadata

  • Download URL: pii_shield_wasi-2.1.1.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pii_shield_wasi-2.1.1.tar.gz
Algorithm Hash digest
SHA256 3cf4e98cfd25f0a6e2d3a9f301ca8afd668a0af0fa23008416036a3f8747ae46
MD5 44c8cf2808943683b91464fb48d8fe57
BLAKE2b-256 ba2d5ed09abb717c5aff155042f48a35d680dc14bc40fb04f5eea9911b2f97bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pii_shield_wasi-2.1.1.tar.gz:

Publisher: publish-sdks.yml on pii-shield/pii-shield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pii_shield_wasi-2.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pii_shield_wasi-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2c0525829f5e19d880b4672756e9b07f318d9b49a933de647683a8af15a67b3
MD5 ea49ef80043b850a82c97ece54f984ee
BLAKE2b-256 08d8954c9f1fcdcdd67fef076c958f60be87c6b88f4f8a9a714f1f03b75906eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pii_shield_wasi-2.1.1-py3-none-any.whl:

Publisher: publish-sdks.yml on pii-shield/pii-shield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page