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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

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

File metadata

  • Download URL: presidio_rs-0.1.2.tar.gz
  • Upload date:
  • Size: 37.4 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.2.tar.gz
Algorithm Hash digest
SHA256 04d3c6163431c657654599e8b23edbc304c27768692c075d09acefc4533563fe
MD5 a2d14d774e43262a2e82ca01099b1c2a
BLAKE2b-256 491836181ba0cc03a7c5bbf36ca4a5b27b2c286ce408f86fbe22cbfef5c53b2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: presidio_rs-0.1.2-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.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 fac3c4f202966728dc79bb11e1fc8012d1ee1875f2054a2776fa2a3fa55b15a0
MD5 b2d6c0468fa9f76ae767aec65b7bdb4f
BLAKE2b-256 1493f19e7ea5bfc612bdc1d5e020080c1e85a7d22c24fb0f6dedf2c37cb3d938

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8bbf131c0ca7d74b40a1d9fa54b25a9eeea346d6facd32263a77ff6a383a0e5a
MD5 b15071dc9e60ca6c6430fa16c3433652
BLAKE2b-256 c64eaaeda96c93250cdb79aea51e37c23e8387bc046a6996be57461a177842d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b598817b5b6502e5bdc55b59e4e7ca278235eac5336904ec199123e68747a700
MD5 eb7f19dfc4236a71f70c071fc855df2e
BLAKE2b-256 d2efedd31da966d8a656275b2c29fbfb4305784d2cc696e0d9db8954fd1caf67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d57763c3f72827d27e4032723959810719a6cb0680d4749b41c478c2a9ba090f
MD5 3473e7c6b64fc19cd6bb2e1eb6ec5bdd
BLAKE2b-256 8add8360926afb4c4a60f415ac49e60c591c4eae575d350376d929993c1c06ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.2-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c0792e69f036c10082cfbeb5f531c21dad0a10b58c6d55e9fa32c65e876ab74e
MD5 f6228ad31d86b9643dbd49522f7aaf6f
BLAKE2b-256 1aef896147be72fa2e6901fbb170ef4e171598f3e3ebbcc63e408aba55363d54

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