See README.md for step-by-step details on installing the pii-codex package as an import.
Video Demo of package import and usage:
Note: This video has no sound, it just shows steps taken to install the package and use it in a file.
For those contributing or modifying the source, use the following to set up locally.
You'll need Python (^3.11) and uv configured on your machine. Once those are configured, create a virtual
environment and install dependencies.
uv syncInstalling dependencies will vary by usage. For those in need of the PII-Codex integration of the MSFT Presidio Analyzer, it is recommended to install the detections extras:
uv sync --extra detectionsAs part of the detections extras installation, the download for the en_core_web_lg spaCy model will be enabled on first use of the PresidioPIIAnalyzer(). If more language support is needed, you'll need to download it separately. Reference explosion/spacy-models.
Depending on your setup and need, you may need to add the virtual environment to Jupyter. You may do so with the following command:
make jupyter.attach.venv