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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

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

File metadata

  • Download URL: presidio_rs-0.1.7.tar.gz
  • Upload date:
  • Size: 69.6 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.7.tar.gz
Algorithm Hash digest
SHA256 ab603e512307f2f6aecbc006e4203860e3b5f16c82adb9f5b91a5ab81deb67ae
MD5 f86d8fa62b8cf57fa2a6343065c845c9
BLAKE2b-256 1aff06c34dbf4f5acb6f0e7c26e45704fac9352f1c47b8b1b6738154f8e85df8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: presidio_rs-0.1.7-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.7-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f1fde3ea28b413a5efe7faa4e566e1b62d2b4b3143e8a1879ca1ec1ab59b148f
MD5 875f43af8a8bbb204c1a877a23ac4cbc
BLAKE2b-256 3cc238324d1f41cb5009c1a976d07241205c1565418058e166cd7ac0d65ae7ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.7-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bf75bed42fc6a7d4e713456aeab085a07fc4d22df70fd350bbebf4158d51dbd8
MD5 c680531bbff5eb4df13424ef6b97b700
BLAKE2b-256 17bbfd780f18b7bebb6978d84c035d447665e8d0e9a46f2945227d6311d5d5ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.7-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3886350029aa1310bacf1999d41834fddbcd5f9fd0ff1974f6d29ec0781cd276
MD5 a0fe9d477b5a844b9a124fd78d544544
BLAKE2b-256 b083863883a9e4a6d7f38e88b4907fddf61b9ffe9ceba5400de01c6d5be2b419

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.7-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5240b8317e24e4a619ce65568654214c084fa1bcccf8a2dd983278fc97d9c679
MD5 128384b7c9640c5b8e93efb33a3fcb9e
BLAKE2b-256 7aedab3ae2adfebddb84e89467d74921020ba48131ba42c4fd2b30ac11d83de3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.7-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 696beda638b64499e2e91ed9e69e66cca9bf7814334284c752ea0e489befd695
MD5 60dfa4d58520968b5ec7009511b48eb0
BLAKE2b-256 b17486616a1db5ff75e4adef3be8908f6b7343297757b86d5f09f0b1cdb02f46

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