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.10.tar.gz (76.4 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.10-cp38-abi3-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8+Windows x86-64

presidio_rs-0.1.10-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

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

presidio_rs-0.1.10-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.10-cp38-abi3-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

presidio_rs-0.1.10-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.10.tar.gz.

File metadata

  • Download URL: presidio_rs-0.1.10.tar.gz
  • Upload date:
  • Size: 76.4 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.10.tar.gz
Algorithm Hash digest
SHA256 e864209ba25805611413f9b2be9f40df81a73c2fdaeab19ad87526ca4894e0a9
MD5 3621781550a8539f96e2ca5a473886bb
BLAKE2b-256 fecf666ff7be833b73fb4d29c8e59ea302a42904d6b89aa584061e971366d1ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: presidio_rs-0.1.10-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.2 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.10-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b01b7763cf07cb854664d096daf476071e57fd03fe44a4f2e8e8effa808461c2
MD5 195bf4d30b31e53497c4a52e67b4d125
BLAKE2b-256 026165c323b94457b21b8897cfce4afd3c0094d7582d3f3835fe2d1620aac6ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.10-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f305429f7c9beb7ea7c60e9e856e4907a41adf2e75289911c8dd69cae521fa61
MD5 df273d6c59a685f98b1f7d41f793ed16
BLAKE2b-256 2ae7f5a03cc0d5f70e47faa45777a41e7ca2c3fee9b7e9c2d1fb0813ba7ebd4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.10-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3e1f27928c44820c50b49deb442dae437ee1b964745d39d08c5bf552ecbee190
MD5 1f7df45af2c35e672fceb6d7bb6330a5
BLAKE2b-256 501785b7da34239b2d66ae99b19920c836097be3d291cba8e7e2584ed8f8e8ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.10-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14c668d8ad79fe7a168de63f04a31d4fa6f743219b0735d1f5c7aa72cd60bae3
MD5 221e3e9f7bd25c4d75d18777ef3213d9
BLAKE2b-256 eaeac28e19fd63879944827d24d2576200cab18bc82bbc9050bdae1aa4f68363

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.10-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ba89c1ba1859326845a6d570d776e2df03bce0fa2d3017e4690e835180931ec9
MD5 4620e68bb44003dc1e1a1575f26720c4
BLAKE2b-256 1b1264b7c3b7f5b1300922e1a22f99934f926142b7da1f8b399ba28f40da31cf

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