Skip to main content

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]

Built with PyO3 + maturin.

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

presidio_rs-0.1.0.tar.gz (29.7 kB view details)

Uploaded Source

Built Distributions

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

presidio_rs-0.1.0-cp38-abi3-win_amd64.whl (811.1 kB view details)

Uploaded CPython 3.8+Windows x86-64

presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (888.2 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (825.1 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

presidio_rs-0.1.0-cp38-abi3-macosx_11_0_arm64.whl (769.9 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

presidio_rs-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl (836.8 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

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

Hashes for presidio_rs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e483c4e981988e98b41d60b0dca3a4a1ef19423913a4fef32fa464835d2bc5e5
MD5 132a51da9de0acb606d8e91527bb6ccd
BLAKE2b-256 9aec61fc410d77b88fa28c1eec3049687ea62b21a5c03bbe92b29d7a3827dc47

See more details on using hashes here.

Provenance

The following attestation bundles were made for presidio_rs-0.1.0.tar.gz:

Publisher: pypi.yml on jqueguiner/presidio-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for presidio_rs-0.1.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3ca68d18e0b2773967f1d298bcc00162c721f8c5a4afc0887a3864d0141685c9
MD5 954835bfbbc41c6299865d6c5dcf6b89
BLAKE2b-256 38152fa9604f8268a646bb3059a9bdd063e33be1871e6d2f8472025c1206a9a9

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7b308405cf23badc829e8460e0f25ddefba26b3586f8e009598ca839359641fb
MD5 63e03a6267bf1f122ab0766e01b50f03
BLAKE2b-256 604694811542ddc3ba644e3c159c325175b8e6a68a4a99bee727fef314c74ee7

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for presidio_rs-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ab7829cad8838f736a55c84f224dd37eb9a1448c161f7140bd2659f4704b2164
MD5 f3a453de47cab287367f1738d2e95a36
BLAKE2b-256 d8d1254ddaf60fb4986ddcbb9e9fc03a5b3955f9e43a0f36c8e370e59eadfbf3

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file presidio_rs-0.1.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for presidio_rs-0.1.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8292a49dc31b8e6080d2b668df231d9c13a676b7a10a482869d8bfe5e9e1a54d
MD5 22a2e8c1496e3bbb4a42941640c59f8f
BLAKE2b-256 24780714fc61be51e80c540760586bf0b8a619aa64dd60a19cf5d3414f69db76

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file presidio_rs-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for presidio_rs-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 24f7b1a8a40663ad239baf570938d90243bfc1a9d2ba06d24fe85067f41abd97
MD5 ef7e2180219bc3cb17355814c48eb8a6
BLAKE2b-256 13e602699878e238be9fe8979ba4265f1566a5f092f959ff9acc58cb7a1dcae4

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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