Rust-powered PII detection & anonymization (a port of Microsoft Presidio)
Project description
presidio-rs (Python)
Python bindings for presidio-rust — Rust-powered PII detection & anonymization, a port of Microsoft Presidio.
pip install presidio-rs
import presidio_rs
presidio_rs.analyze("card 4095-2609-9393-4932, ssn 078-05-1120")
# [{'entity_type': 'CREDIT_CARD', 'start': 5, 'end': 24, 'score': 1.0},
# {'entity_type': 'US_SSN', 'start': 30, 'end': 41, 'score': 0.4}]
presidio_rs.anonymize("card 4095-2609-9393-4932", operator="mask", masking_char="#")
# 'card ###################'
presidio_rs.supported_entities()
# ['CREDIT_CARD', 'CRYPTO', 'DATE_TIME', ...]
API
| Function | Returns |
|---|---|
analyze(text, language="en", entities=None, score_threshold=None) |
list[dict] |
anonymize(text, language="en", operator="replace", new_value=None, masking_char="*", entities=None, score_threshold=None) |
str |
supported_entities(language="en") |
list[str] |
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file presidio_rs-0.1.0.tar.gz.
File metadata
- Download URL: presidio_rs-0.1.0.tar.gz
- Upload date:
- Size: 29.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e483c4e981988e98b41d60b0dca3a4a1ef19423913a4fef32fa464835d2bc5e5
|
|
| MD5 |
132a51da9de0acb606d8e91527bb6ccd
|
|
| BLAKE2b-256 |
9aec61fc410d77b88fa28c1eec3049687ea62b21a5c03bbe92b29d7a3827dc47
|
Provenance
The following attestation bundles were made for presidio_rs-0.1.0.tar.gz:
Publisher:
pypi.yml on jqueguiner/presidio-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
presidio_rs-0.1.0.tar.gz -
Subject digest:
e483c4e981988e98b41d60b0dca3a4a1ef19423913a4fef32fa464835d2bc5e5 - Sigstore transparency entry: 2176371741
- Sigstore integration time:
-
Permalink:
jqueguiner/presidio-rs@c2a0dc3c328e1e84f138ae6ebfbb722f2fb4906e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jqueguiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@c2a0dc3c328e1e84f138ae6ebfbb722f2fb4906e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file presidio_rs-0.1.0-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: presidio_rs-0.1.0-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 811.1 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ca68d18e0b2773967f1d298bcc00162c721f8c5a4afc0887a3864d0141685c9
|
|
| MD5 |
954835bfbbc41c6299865d6c5dcf6b89
|
|
| BLAKE2b-256 |
38152fa9604f8268a646bb3059a9bdd063e33be1871e6d2f8472025c1206a9a9
|
Provenance
The following attestation bundles were made for presidio_rs-0.1.0-cp38-abi3-win_amd64.whl:
Publisher:
pypi.yml on jqueguiner/presidio-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
presidio_rs-0.1.0-cp38-abi3-win_amd64.whl -
Subject digest:
3ca68d18e0b2773967f1d298bcc00162c721f8c5a4afc0887a3864d0141685c9 - Sigstore transparency entry: 2176372827
- Sigstore integration time:
-
Permalink:
jqueguiner/presidio-rs@c2a0dc3c328e1e84f138ae6ebfbb722f2fb4906e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jqueguiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@c2a0dc3c328e1e84f138ae6ebfbb722f2fb4906e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 888.2 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b308405cf23badc829e8460e0f25ddefba26b3586f8e009598ca839359641fb
|
|
| MD5 |
63e03a6267bf1f122ab0766e01b50f03
|
|
| BLAKE2b-256 |
604694811542ddc3ba644e3c159c325175b8e6a68a4a99bee727fef314c74ee7
|
Provenance
The following attestation bundles were made for presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
pypi.yml on jqueguiner/presidio-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
7b308405cf23badc829e8460e0f25ddefba26b3586f8e009598ca839359641fb - Sigstore transparency entry: 2176373296
- Sigstore integration time:
-
Permalink:
jqueguiner/presidio-rs@c2a0dc3c328e1e84f138ae6ebfbb722f2fb4906e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jqueguiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@c2a0dc3c328e1e84f138ae6ebfbb722f2fb4906e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 825.1 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab7829cad8838f736a55c84f224dd37eb9a1448c161f7140bd2659f4704b2164
|
|
| MD5 |
f3a453de47cab287367f1738d2e95a36
|
|
| BLAKE2b-256 |
d8d1254ddaf60fb4986ddcbb9e9fc03a5b3955f9e43a0f36c8e370e59eadfbf3
|
Provenance
The following attestation bundles were made for presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
pypi.yml on jqueguiner/presidio-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
ab7829cad8838f736a55c84f224dd37eb9a1448c161f7140bd2659f4704b2164 - Sigstore transparency entry: 2176372363
- Sigstore integration time:
-
Permalink:
jqueguiner/presidio-rs@c2a0dc3c328e1e84f138ae6ebfbb722f2fb4906e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jqueguiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@c2a0dc3c328e1e84f138ae6ebfbb722f2fb4906e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file presidio_rs-0.1.0-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: presidio_rs-0.1.0-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 769.9 kB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8292a49dc31b8e6080d2b668df231d9c13a676b7a10a482869d8bfe5e9e1a54d
|
|
| MD5 |
22a2e8c1496e3bbb4a42941640c59f8f
|
|
| BLAKE2b-256 |
24780714fc61be51e80c540760586bf0b8a619aa64dd60a19cf5d3414f69db76
|
Provenance
The following attestation bundles were made for presidio_rs-0.1.0-cp38-abi3-macosx_11_0_arm64.whl:
Publisher:
pypi.yml on jqueguiner/presidio-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
presidio_rs-0.1.0-cp38-abi3-macosx_11_0_arm64.whl -
Subject digest:
8292a49dc31b8e6080d2b668df231d9c13a676b7a10a482869d8bfe5e9e1a54d - Sigstore transparency entry: 2176373495
- Sigstore integration time:
-
Permalink:
jqueguiner/presidio-rs@c2a0dc3c328e1e84f138ae6ebfbb722f2fb4906e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jqueguiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@c2a0dc3c328e1e84f138ae6ebfbb722f2fb4906e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file presidio_rs-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: presidio_rs-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 836.8 kB
- Tags: CPython 3.8+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24f7b1a8a40663ad239baf570938d90243bfc1a9d2ba06d24fe85067f41abd97
|
|
| MD5 |
ef7e2180219bc3cb17355814c48eb8a6
|
|
| BLAKE2b-256 |
13e602699878e238be9fe8979ba4265f1566a5f092f959ff9acc58cb7a1dcae4
|
Provenance
The following attestation bundles were made for presidio_rs-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl:
Publisher:
pypi.yml on jqueguiner/presidio-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
presidio_rs-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl -
Subject digest:
24f7b1a8a40663ad239baf570938d90243bfc1a9d2ba06d24fe85067f41abd97 - Sigstore transparency entry: 2176372019
- Sigstore integration time:
-
Permalink:
jqueguiner/presidio-rs@c2a0dc3c328e1e84f138ae6ebfbb722f2fb4906e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jqueguiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@c2a0dc3c328e1e84f138ae6ebfbb722f2fb4906e -
Trigger Event:
workflow_dispatch
-
Statement type: