Omna unified PII/secret detection engine (L1–L6) — compiled Rust kernel with in-process on-device AI. Binary-only.
pip install omna-pii-mask==0.2.14 Copy PIP instructions
The compiled detection engine behind Omna's PII features. This is the same unified Rust kernel that ships in the Omna Mac app and browser extension, exposed to Python as a single self-contained wheel.
It is the backend for pip install "omna[pii]" — you normally don't install it directly; the omna package depends on it.
A six-layer (L1–L6) detection pipeline over text:
import omna_pii_mask omna_pii_mask.mask("Email john@acme.com", model=False) # -> {"masked": "...", "tokens": {...}} omna_pii_mask.detect("SSN 123-45-6789") # -> [{"entity": ..., "confidence": ...}, ...] omna_pii_mask.restore(masked_text, tokens) # reverse the reversible tokens omna_pii_mask.download_model() # pre-fetch the L3 model omna_pii_mask.version() # engine fingerprint (version+gitsha) Reversible PII is replaced with stable tokens ([PERSON_1], [EMAIL_1], …). Secrets/credentials are always redacted irreversibly ([REDACTED: ]) and never written to the reversible token map.
Span start/end (in mask(...)["spans"] and detect(...)) are UTF-8 byte offsets, not Python string indices. Slicing text[start:end] is wrong as soon as a dash, emoji or accented letter comes before the span — use text.encode()[start:end].decode(), or mask(...)["masked"], which is already correct.
Binary-only, proprietary. Wheels are built abi3 (one wheel per platform covers Python 3.9+). No source distribution is published — the Rust source is closed.
pii redaction privacy ner secrets rust detection
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




