Skip to main content

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.

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.11.tar.gz (83.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.11-cp38-abi3-win_amd64.whl (977.9 kB view details)

Uploaded CPython 3.8+Windows x86-64

presidio_rs-0.1.11-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

presidio_rs-0.1.11-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (978.0 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

presidio_rs-0.1.11-cp38-abi3-macosx_11_0_arm64.whl (926.3 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

presidio_rs-0.1.11-cp38-abi3-macosx_10_12_x86_64.whl (990.3 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file presidio_rs-0.1.11.tar.gz.

File metadata

  • Download URL: presidio_rs-0.1.11.tar.gz
  • Upload date:
  • Size: 83.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.11.tar.gz
Algorithm Hash digest
SHA256 c986b538f4fda96c8ac2d68d1b4187e5f0b001d878226780eb7535369ce382c6
MD5 a508973e883102849f6f36af734e8ffe
BLAKE2b-256 93eccfbca9a07f8e97cdd03294ef62d75effce44b33b67786198fad4d7fdb265

See more details on using hashes here.

File details

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

File metadata

  • Download URL: presidio_rs-0.1.11-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 977.9 kB
  • 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.11-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 23fb868801bfa763540bd90fef829370168475780af57db831716fe8487689d8
MD5 187034ae73e990a8831505eec764cf84
BLAKE2b-256 0bb7ceef3a40c08e05d2f4e38ebe7fa9955cf78b1a4f30be77513badecf95779

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.11-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c31e2060f4449fca374abb2e9d78840d01603b9b8d9b1c5a40b666608e16ac14
MD5 603615fd0e4918bef125f97e282de3d8
BLAKE2b-256 41dc0ba4b0653734dee1c7a2141389cc3bc265c38127406ad5abe34448287e86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.11-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bd9bf0f86bdb1617bdcdcbd5e953953b78937d411bb88755232476eac8af0837
MD5 e1e8b700de73d00f8bbd2f7bcc3f44f0
BLAKE2b-256 e2f3bf1c1c8310ae9726471fe08cc2fcbfcdaa8304d5aeb2fa1c047273ae084d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.11-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffd8d8bc71579772d39f1e5bc24aada365ff9d416de88066840a617de9b20581
MD5 25e9da0e8b4145fb3317808275fc8fb2
BLAKE2b-256 7105f5cdfabae1a7b7b6ce654c35a6dcca460163a34d9ba356ee2e057a68d062

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for presidio_rs-0.1.11-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6aec57bb4b9d640fce839a186b07044289d8770f8b17be219afc587b8e068053
MD5 f2792e74fde2fdb49f8eab9c6cee58a5
BLAKE2b-256 89231335ff125132d6fdcd941847122e2753280690b12b9a21fc2a25b4192fe4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.11 This release

6 files

0.1.10

6 files

0.1.9

6 files

0.1.8

6 files

0.1.7

6 files

0.1.6

6 files

0.1.5

6 files

0.1.4

6 files

0.1.3

6 files

0.1.2

6 files

0.1.1

6 files

0.1.0

6 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page