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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

presidio_rs-0.1.9-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.9.tar.gz.

File metadata

  • Download URL: presidio_rs-0.1.9.tar.gz
  • Upload date:
  • Size: 28.0 MB
  • 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.9.tar.gz
Algorithm Hash digest
SHA256 97cf3df0cf7db24898e8dd56f132be2c11b87563ffd1dcc3d38047154c79e7a1
MD5 3e046a148fc679ca4044fd21f25d2863
BLAKE2b-256 d89240b26fc7a9cd67fd1805adcfdc068fe6e9479a92b9155729c4bf5613765e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: presidio_rs-0.1.9-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.9-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d0230dea3b6a7dabb42d35e01f434e5525f863e3b4e8744994f4c3fb82fbfeeb
MD5 7883e4e51a7b8425d8596362687a02bc
BLAKE2b-256 2f7df84504eca3efc1c551992ff1853cc75ac4a035c9155fea7345efbf7420ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e24a9bbe49c7b79803f900ed8396f439c5927d01b555f87c58d29694491ce928
MD5 7438af94758d25d676af3888dd156a07
BLAKE2b-256 0b1c1a7fcfe55ed61929cacf8596ff7ca2b02e88fdd36a65d9fa7c827c1f29c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.9-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fd62ef0d99fa63df3710854c3bcc3f96cc84f38d3c1e8e7b6642d86cb410d2f0
MD5 d2dd7d4a47b6a429158430b896d0bbbf
BLAKE2b-256 2f18e0ec1f20ce501d3e4cf78c5e7529861029dcb2f82cfa59dc84cce35f0735

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.9-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38f56bffba960499409a36af25143866f37175b80acb591399c39ee8d2a91367
MD5 6c8425d230b6fbbb9325daf267852dbd
BLAKE2b-256 542bfcd29bafd4ad1b81ce94cdc70bc8cbb775159acdfef85a863beb35749b38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.9-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b305c3cf3753aa26aa42e0da786c649aecda584ce904d1855880a29f317c511d
MD5 eef2aa0cd5dd31217fea8721115e586a
BLAKE2b-256 a55a9b4fef55967391910c0a944e970120475ca9a61dd9a4d512a5e17fe399be

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