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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

presidio_rs-0.1.6-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.6.tar.gz.

File metadata

  • Download URL: presidio_rs-0.1.6.tar.gz
  • Upload date:
  • Size: 66.1 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.6.tar.gz
Algorithm Hash digest
SHA256 02d7a20d6f4d391c965a1815c39a093ba7063389beba934b699d426ab683d0e2
MD5 6ff755cdb2ff9607d71095d547d111e6
BLAKE2b-256 b86bea9b15f2c25c41dfedf13b883b51d48efa26b4042e944c5ca16409790f5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: presidio_rs-0.1.6-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.6-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0e182212e1a3dc277e73d15989c0d9b497939a86593c610009cdea7cdc75615e
MD5 a97fddfa18019b979e3a1061247e9485
BLAKE2b-256 da768bfbdf32e6756c04612e2dbeb6b68ece0a2790d6e274ad99c9dba0fd95d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c8afd5b2cf304a25f0ad883e58651351efb3d38a7b766af087f31dee2900d60c
MD5 2915630ceb849b94192e18827b8011c6
BLAKE2b-256 9166a07a49603d37cf25fde446246ecc373651eb411e4755936f789da854d0b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2383fe6040978991b6937d0c51127ea9126585313f836cf62ac4bf325dbef431
MD5 3bbd39b2f905a6e91fd75907b69dd942
BLAKE2b-256 83fe13d78a91f2b26ce634e6b01f1cce992263911c140479a1adf95a71b5ed09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.6-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7fb99405b966dc8d52e28a9fdcf0b766b2b8cd05e626f0e2ddfa3af33df4707b
MD5 9b9a72a47335cc31d172862983106772
BLAKE2b-256 02c5d510abf4a8e1d087b0553d0c94b1e08f271bf6cc44cad8d457f48ace1944

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.6-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d624913c0e616bc9db074ed733ec8b20a56cbed1e6b92ede934c0c6e19a7d887
MD5 3a23d7a772bbd094a24c0da5401ab876
BLAKE2b-256 8158daf66c54a9a8850280b0c2d43f201c4546431c5ab69f02873f5aae5e538f

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