Skip to main content

decima-pii

Find and redact personal data (names, phones, emails, national IDs, IBANs, cards, passports, addresses, dates of birth, IP addresses) in Arabic, Persian, Urdu, Turkish and English, including numbers in Persian and Arabic-Indic digits. CPU, int8 ONNX, no PyTorch.

This package is a small alias. The code lives in decima-ai (decima.pii), and installing decima-pii installs it, plus a decima-pii command. You can use either:

pip install decima-pii        # or: pip install decima-ai
from decima import PII        # or: from decima_pii import PII

pii = PII.from_pretrained()   # amyrmahdy/decima-pii v0.2, 148 MB, downloaded once
pii.redact("اسمي محمود الشمري ورقم جوالي ٠٥٥١٢٣٤٥٦٧")   # 'اسمي [PERSON_NAME] ورقم جوالي [PHONE]'
pii.find("...")               # [{"start", "end", "label", "text"}, ...]
decima-pii "سلام، من سارا احمدی هستم. کد ملی من ۰۰۱۲۳۴۵۶۷۸ است."   # same as: decima pii "..."
cat letter.txt | decima-pii --redact-only

2.5.0 loads model tag v0.2 by default, so a later model update will not change your results until you upgrade. PII.from_pretrained(revision="v0.1") (or decima-pii --revision v0.1 "...") gives the previous model and its exact output.

Apache-2.0.

Metadata

Release files for decima-pii 2.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for decima-pii 2.5.0
File Size Uploaded Provenance Actions
decima_pii-2.5.0.tar.gz 1.9 kB Without provenance Details for decima_pii-2.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for decima-pii 2.5.0
File Interpreter ABI Platform Actions
decima_pii-2.5.0-py3-none-any.whl Python 3 none any Details for decima_pii-2.5.0-py3-none-any.whl

Total release size: 4.4 kB

Release files / decima_pii-2.5.0.tar.gz

Download URL decima_pii-2.5.0.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b987d2db4da1fa8c1a6589dab7c4300b0f72b80f7b3d0e6c6995601c29da587e
BLAKE2b-256 checksum
How to use checksums
a99509f3ace04999805b4f3fd317e2e911064db6f189b2e4e3f4009c3d9ca2ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / decima_pii-2.5.0-py3-none-any.whl

Download URL decima_pii-2.5.0-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
151b7a4b932c3a3704ba225cb70e16d59abaaef4f0c36864422beb40203ff212
BLAKE2b-256 checksum
How to use checksums
f1154acd3a0231d81a683549b10818807185ec3c16b251995cd4e8d972c72540
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for decima-pii 2.5.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page