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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

presidio_rs-0.1.8-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.8.tar.gz.

File metadata

  • Download URL: presidio_rs-0.1.8.tar.gz
  • Upload date:
  • Size: 70.5 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.8.tar.gz
Algorithm Hash digest
SHA256 eeb4a93e230aae73038cb1a721a7610bf5e00b4aaf9a189607004aab0cc57d38
MD5 dfcc9dcb46f0019cfebee50002fe87e7
BLAKE2b-256 40b3cc97bc8a24ba091020cca7d167850408fdbd648c4a0be8ad271a67162cff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: presidio_rs-0.1.8-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.8-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 477186a76d23ee29a44a7ea901afd2f050eb7a35a4ec9ac85095adcfad5f2d52
MD5 124af8a680db77f756f36d1cd188e477
BLAKE2b-256 8d93d6048b863e454160bb77c790ca3dd8181017fb457bf36c5b74ce62a52842

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.8-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 081c28dabc64c5eb565ba4e46d0240aed05288706273eabe89317d146a26c073
MD5 159de235719fad1acdcb97cc1fe85a1b
BLAKE2b-256 74a0a6624e40a0b733ac80904781d1bc7908784f250079b1d1c03402a15166d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b68aacd05fc4008fbea1c1bb69a18a8061d361443cf07ae424cf65eabb4ccfaf
MD5 7d1d8ad66be26025a22c1e46fcaa58d4
BLAKE2b-256 f36da0587d6112ca994a8fef634e2fa49971d652f6fd2796e33035f4f7dcf201

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.8-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ad705a0ec265823038c04f90224f5d69a14709ccfa106f052fc0f727e6680f0
MD5 c9d5c4ba6654d6bcf816b4610ca0445d
BLAKE2b-256 ced59ef5a29d0758fdf8e0b40e3359d4ffc47854375614f8b478e59aa231fa1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.8-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2946f7ee0dd7a8a37854566bb1e56eccf3c9bce9f19d651f7fd93d035f45c203
MD5 cc790fc7eebf0e098799a98266fca54b
BLAKE2b-256 117908aacf5e27d263b6fc1cae223ca483fe42f7282fb9a0e132e36237c6bd96

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