Files
presidio/docs/tutorial/00_getting_started.md
Omri Mendels 23888dcab9 Revert accidental migration push to main
Reverts a725ecfa ("updates to docs and markdown") and bee25c35 ("docs and md renames"), which were pushed to main by mistake. The migration work is preserved on a separate branch and will be reintroduced via a proper branch/PR.
2026-06-25 23:38:24 +03:00

781 B

Getting started

Installation

First, let's install presidio using pip. For detailed documentation, see the installation docs. Install from PyPI:

pip install presidio_analyzer
pip install presidio_anonymizer
python -m spacy download en_core_web_lg

Simple flow

A simple call to Presidio Analyzer:

from presidio_analyzer import AnalyzerEngine

text = "His name is Mr. Jones and his phone number is 212-555-5555"

analyzer = AnalyzerEngine()
analyzer_results = analyzer.analyze(text=text, language="en")

print(analyzer_results)

Next, we'll go over ways to customize Presidio to specific needs by adding PII recognizers, using context words, NER models and more.