Setting up Data Protection Features

Installation instructions for the Data Protection features.

Prerequisites

Ensure that the following prerequisites are met before running these examples for tokenizing data:

Note: The Java samples provided in this section are for Linux or macOS. For Windows, use <filename>.bat.

Installation

Steps to install the required modules and libraries for the Data Protection feature are provided below.

Installing the protegrity-ai-developer-python module

The module has built-in functions to find, redact, mask, and protect data.

  1. Open a command prompt.

  2. Install the protegrity-ai-developer-python module. It is recommended to install and activate the Python virtual environment before running this command.

    pip install protegrity-ai-developer-python
    

    The installation completes and the success message is displayed. To compile and install the Python module from source, refer to Building the Python module.

  1. Open a command prompt.

  2. Upgrade the protegrity-ai-developer-python module. It is recommended to install and activate the Python virtual environment before running the command.

    pip install --upgrade protegrity-ai-developer-python
    

    The package is successfully upgraded.

Installing the protegrity-ai-developer-java library

When you run the Java samples for the first time, Maven automatically pulls the protegrity-ai-developer-java library from Maven Central as a dependency. This ensures that all required classes and resources are available without manual download.


Building the Python Modules

Compiling and building the Python module.

Building the Java Libraries

Compiling and building the Java libraries.


Last modified : July 03, 2026