Skip to main content

Omna unified PII/secret detection engine (L1–L6) — compiled Rust kernel with in-process on-device AI. Binary-only.

Project description

omna-pii-mask

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.

What it does

A six-layer (L1–L6) detection pipeline over text:

  • Regex + rule layers — emails, phone numbers, cards, URLs, and 220+ secret rules (AWS keys, GitHub tokens, JWTs, …) with entropy checks.
  • Checksum-validated IDs — Luhn, IBAN, Verhoeff, NHS, and 30+ international formats, so a string that merely looks like an ID isn't flagged unless it validates.
  • On-device AI (L3) — an optional ONNX model that catches contextual PII regex can't (e.g. a bare prose name). Runs in-process on the same ONNX Runtime the wheel already links; downloads once on first use.

API

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:<KIND>]) and never written to the reversible token map.

Distribution

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.

Project details


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 Distributions

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

omna_pii_mask-0.2.4-cp39-abi3-manylinux_2_28_x86_64.whl (9.7 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ x86-64

omna_pii_mask-0.2.4-cp39-abi3-manylinux_2_28_aarch64.whl (10.4 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

omna_pii_mask-0.2.4-cp39-abi3-macosx_11_0_arm64.whl (8.3 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file omna_pii_mask-0.2.4-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for omna_pii_mask-0.2.4-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6e569e636dbf6c038b017ebd288b530abb66ccac7a8390780996beefa9626f1f
MD5 56680fd39ae0e03d9c03bea85b799b73
BLAKE2b-256 245e7fe48eb897a2cf9a1cfa8f2a801845d67cd2c2cb6dc3c37903815f83ed31

See more details on using hashes here.

File details

Details for the file omna_pii_mask-0.2.4-cp39-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for omna_pii_mask-0.2.4-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 85dc82ad442d6baff38ea0bcd316271459ae70c30015ab904e4fd7e00b93ec2b
MD5 6ce3ca17d31b5854e67d74d5dd578686
BLAKE2b-256 b9f3b9c893194ce54fe14ba8fe9aab8cf3821bb2506134111f5146416397dcc0

See more details on using hashes here.

File details

Details for the file omna_pii_mask-0.2.4-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for omna_pii_mask-0.2.4-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d767700a714aa9b323b26a18b14c0ac5fe1e59cb6424fd7fc2eac400658e7f5c
MD5 6eb6c245a51b12c580b3cba370c7d67c
BLAKE2b-256 be4d097e5e73c9ad969c499ab5c3535851267740963fb81b822e924cb95b6641

See more details on using hashes here.

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