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, 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
- Model, results and limits: https://huggingface.co/amyrmahdy/decima-pii (a preview; please read the limits)
- Try it in the browser: https://amyrmahdy-decima-playground.static.hf.space/pii.html
- Code, LiteLLM guardrail and Presidio recognizer: https://github.com/amyrmahdy/decima
Apache-2.0.
Metadata
Release files for decima-pii 2.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| decima_pii-2.4.0.tar.gz | 1.7 kB | Without provenance | Details for decima_pii-2.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| decima_pii-2.4.0-py3-none-any.whl | Python 3 | none | any | Details for decima_pii-2.4.0-py3-none-any.whl |
Total release size: 4.1 kB
Release files / decima_pii-2.4.0.tar.gz
| Download URL | decima_pii-2.4.0.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cedde7e5334eb4d4bfe02992bf0135a4e81d4defd12bc4c3baa6c1fd9eaa14c0
|
|
BLAKE2b-256 checksum How to use checksums |
b981a7e38961d725ba7223c2135b473312cd51909ab6e515ccbb7e29169983fd
|
| 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.4.0-py3-none-any.whl
| Download URL | decima_pii-2.4.0-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58da0adc5df498f305635f32b267ac3b8920ed2e42013c424f4f33a809a6c014
|
|
BLAKE2b-256 checksum How to use checksums |
d6aa8dfb55e4ba11fce86f7d43dd9806373cb87215f2bd55173c60fc9d629b91
|
| 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.4.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.