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.1.tar.gz (36.6 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.1-cp38-abi3-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.8+Windows x86-64

presidio_rs-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

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

presidio_rs-0.1.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

presidio_rs-0.1.1-cp38-abi3-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

presidio_rs-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file presidio_rs-0.1.1.tar.gz.

File metadata

  • Download URL: presidio_rs-0.1.1.tar.gz
  • Upload date:
  • Size: 36.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for presidio_rs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6df67af9fb327e818e8916aa8a80df7fab9626f3dcd1eae785622569c9f9b49d
MD5 4d2c04d319b16789a757201013cad8d3
BLAKE2b-256 d460825a6de1f86881b2949b57fc34dd2035d77674fe5c41bd89bd87c93de353

See more details on using hashes here.

File details

Details for the file presidio_rs-0.1.1-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: presidio_rs-0.1.1-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for presidio_rs-0.1.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 691a8810c573c52d55e0cb4b810ed3eabf8ab30e3778dfd3b271663229d63a9b
MD5 44f67b3e4c1ee0c3953b5ce29e5c0db4
BLAKE2b-256 7178086c68cd663db2a55b07a562a8e27c78a12cea661fe45a91a05b82c9fcd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9aa67ad7a0c2217a5cc8f6e961052743b5e31d0184304310846d80486d4d229c
MD5 dc0bf9cb20336e4066c9f2408131381b
BLAKE2b-256 ac79a28f18e6b55e0062ddddb0613faf9513fbfaadd073d1e1fc47c16f873043

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2c50b490a063cd6123b6e750b50d842c9d4d95cb0e4822de89c3325b52b56deb
MD5 048ec52fc88c15782f5bd198b31f2031
BLAKE2b-256 b06e727aa5538d996632133a0439304ad52a93003aa7342774e35b32be3642ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b53dd66ddc66eb3d0e98851480a587ebffea66bbdc01668e4a5ae9d8b7605c0a
MD5 446ac6e5b90f3d278d5c5a4df04c25c7
BLAKE2b-256 264154b248814950218f4a20a20a1c3afbdd513d70cc7d704501908a700f6aa0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6319fb2cfceeed5cb9144342ca9949f6d2b9e170343461bb7b812c2b99d789f4
MD5 486337d9cd3a853a7a7827584ae5256d
BLAKE2b-256 2991e8ad8b78b8b44d3138797c491ca029dfd920c08a5ae9550b452f0c82edb6

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