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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

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

File metadata

  • Download URL: presidio_rs-0.1.3.tar.gz
  • Upload date:
  • Size: 44.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.3.tar.gz
Algorithm Hash digest
SHA256 548149c1c7ee0bac027a5c43bcf3d1472edfe9fbed14963d3d626ecc8e38a7ba
MD5 9a081b5798b4957337a934e1b8fa5380
BLAKE2b-256 89bf0d2d8748a4bd8dd447ec343f1065927f7898820a46f88e97ec8c74ac7ee2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: presidio_rs-0.1.3-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.3-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9ac2395ca651f3638899077cc16b4c02eb3526784312420e001e66752d74e7f4
MD5 38e05b78c4a8d8a5a58cb30261d2d2bd
BLAKE2b-256 4d8f66294896aff1a6314239ca440cd4f49e0750d2adfb4716386223d0675834

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 65dd49fd281672be7636b3e2c882b75f3674410142528cd682c2c8098e90f47e
MD5 02a3b549f7a5cc9c796662f22243c4d9
BLAKE2b-256 be5d3c6f0911679e158da583935ce18ef486f56b496eaf9a9f1a6edcf24912c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b123ae0a64326e84a425f6343364f343b6f4317247ce05c8829ddf899c10a405
MD5 3cb59587e7730ed4ccb6ad4ab0b8e1b5
BLAKE2b-256 1e10b4b91683ddca4b629647d71aa406281a967e41b7490aa25c951c722a7581

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.3-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0393686d84742c95c0837b53ba535419b7e0bf3be4e499d6a6de08948b5e61e
MD5 1fd6579aa0da54ac4eb57e350da48ca3
BLAKE2b-256 224a1429e6eeed908e8f2f0f158bfc29e98975d39fe90518c68340651170b87f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.3-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9c4b6ed546e81f1160278c3c1292baad9bf8692b92aef0f016141e028df951bb
MD5 cd6451a657f0422db24acc16ddaf6569
BLAKE2b-256 ed9adf839214b887f3ec623e048388ba74ab6fcea614458a101862667c223756

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