Skip to main content

Presidio

Build Status MIT license

Context aware, pluggable and customizable PII de-identification service for text and images.

Overview

presidio is a convenience meta-package that references and installs presidio-analyzer and presidio-anonymizer, the PII detection and anonymization engines from the Microsoft Presidio project.

Note: This package contains no code of its own. It simply pulls in presidio-analyzer and presidio-anonymizer as dependencies. For the full feature set, documentation, and source code please refer to the presidio-analyzer README and the presidio-anonymizer README.

Installation

pip install presidio

This will install presidio-analyzer, presidio-anonymizer, and their dependencies.

Usage

from presidio_analyzer import AnalyzerEngine
from presidio_anonymizer import AnonymizerEngine

analyzer = AnalyzerEngine()
anonymizer = AnonymizerEngine()

results = analyzer.analyze(text="My name is John Doe", language="en")
anonymized = anonymizer.anonymize(text="My name is John Doe", analyzer_results=results)
print(anonymized)

Documentation

For full documentation, visit https://presidio.dataprivacystack.org.

Acknowledgements

The idea of publishing a top-level presidio package that bundles presidio-analyzer and presidio-anonymizer was originally proposed and implemented by Sakthi Santhosh Anumand and Harsha Vardhan. We thank them for the initiative and for making Presidio more accessible to the community.

License

MIT License. See LICENSE for 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-2.2.364.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

presidio-2.2.364-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file presidio-2.2.364.tar.gz.

File metadata

  • Download URL: presidio-2.2.364.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for presidio-2.2.364.tar.gz
Algorithm Hash digest
SHA256 867dd1398e72c52fac96fd5fa0848159529ecc8da93bbcc0d5efab2d6f12dca0
MD5 516eb5e8cc4c06b159ea2e9ba7858519
BLAKE2b-256 c0a1e4afc95b168e5f787b66097463467e143f298080a92b184ac97630c1c457

See more details on using hashes here.

Provenance

The following attestation bundles were made for presidio-2.2.364.tar.gz:

Publisher: release.yml on data-privacy-stack/presidio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file presidio-2.2.364-py3-none-any.whl.

File metadata

  • Download URL: presidio-2.2.364-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for presidio-2.2.364-py3-none-any.whl
Algorithm Hash digest
SHA256 00569bcb525a8bb915354b5c2bf66da4bed937b202056b72c80d5f9dc6652bd2
MD5 42c0f083f1f9f3d8be239d2f071c0fb0
BLAKE2b-256 79dd36131e8affca262486c0c38da8bb49e9b98b7a3a372dabdd07be86405d34

See more details on using hashes here.

Provenance

The following attestation bundles were made for presidio-2.2.364-py3-none-any.whl:

Publisher: release.yml on data-privacy-stack/presidio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.2.364 This release

2 files

2.2.363

2 files

2.2.362

1 file

2.2.361

1 file

0.2.1

2 files

0.2.0

2 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