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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

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

File metadata

  • Download URL: presidio_rs-0.1.5.tar.gz
  • Upload date:
  • Size: 65.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.5.tar.gz
Algorithm Hash digest
SHA256 0a7eba5c26bb34f9506b325910b2264cc49575a5821a40c41cb6c6922354a435
MD5 c477228a46ab926dbc31aac64ee3be30
BLAKE2b-256 55596751f7ddcd2e96b7f1199468b3d48dd0af26e8cdd027e223d0c11d5bf78c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: presidio_rs-0.1.5-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.5-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 138bf1428bd0e582a473b3fd3776731d573d0244a6ff021c075246cfca6c94b4
MD5 92b1fe7aab29b16196c6de0c0cd9fe5e
BLAKE2b-256 71714ee452563fbaae2ef8669ff9f495fc1314f1200584863d538abce225a6d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a24e9eb4038e16e16b60429c5e1ca914df316bc3aaa459a0e60509049e2fe8e7
MD5 fd9b3220d4403c7f3202c57d311baad6
BLAKE2b-256 1271cdda7dbaf8661e81384d020af97279e8f5c59287fd04008e76a4c263c793

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 db15f5fb3f6da6e52c4d0b96f53323090a5b12482536f142f5b4fbe8ce0aa881
MD5 85f4d60939472ae64f862dd2d7d4dc3c
BLAKE2b-256 51b87d0b2f3ddf44ffa353e97f75344861dd8ffd45344c7cb4e49978250ae808

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.5-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7365dc846fd88a3830248e61788ce9c56f6562188332464030de9110c479fdca
MD5 74bfd9ab4ddb645cb54f7ffb1389e51f
BLAKE2b-256 eed9953f81a37d8863fbed17ea4b35617e4963f58ef12c67c2ac22fa90bc2e91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.5-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 80f41441ae4c4dcac7d1e6e35e5390217a1adb05b77735f510864a5527e878d7
MD5 7f798a7521db94ed546ebc92be42c258
BLAKE2b-256 f532ece79b69592916a0b208566e39dd6cb81587a9bf246715f97fc56fef55d1

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