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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

presidio_rs-0.1.4-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.4.tar.gz.

File metadata

  • Download URL: presidio_rs-0.1.4.tar.gz
  • Upload date:
  • Size: 64.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.4.tar.gz
Algorithm Hash digest
SHA256 94cbe6aacf2091041ab41d7ea66823ecab3d2085c6aeb658fd6073ee0b848125
MD5 495646c2569d29e7428b5af804429a85
BLAKE2b-256 ce7c0b4ebc89b504fea416298fe5244f58ad5789dd84dcc3ed0f7dd07bd0a925

See more details on using hashes here.

File details

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

File metadata

  • Download URL: presidio_rs-0.1.4-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.4-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f416fd9410b1aaa54eae4706cc9ae74f66a7093e247fb110a2ba6b6f7b20a90e
MD5 ca46d6233c5bea8f913f7c8f594ea257
BLAKE2b-256 f98f19a1967d66264368db00cd2d17ab12d4c6119d25daaa10e9da8e9c4ab628

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c40e7f9a16de9620a20b6c608a7eab2797a3d7a5967fd5456c37a81c4b9879b4
MD5 53ee087661023e5ab6c1e1785bb8e006
BLAKE2b-256 6ce7b83619b9f2f15c89d9a800ecc66a2f76669e08473f2114e10aaadde75252

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2de8409862ba1c11ce16cb3ae7a8e4984f9baf638ed682840f45c1820b298e44
MD5 de08dbf2ee236a9445a35e1090bc4c72
BLAKE2b-256 2bc53a3a70bdb475a44d03a962bdf116df462e0e4f54245ee19508e749e813fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.4-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b64e2b3bbb37e8e685377319de03e58149d9b4cb973bbba1ccd58e3511ec3d5
MD5 0034671be4e19188083d7043a3c91362
BLAKE2b-256 84b18634bb7feefe26ae71333b17551f89f4412c8c456bd7cfe8055d5c4b6a32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.4-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c1b8a98bc9bd766324b07a4efa0ef58cc95f83417288e1cd1bb0ea162c359b55
MD5 a21a00539a10b54d7c786587690af6ad
BLAKE2b-256 0c4e54500a3f90d15ddcdc7208c6ede716ad13f816585a68340ffd84a2b08fe0

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