Prerequisites
Ensure that the following prerequisites are met before running these examples for tokenizing data:
- Python, pip, Java, and Maven are installed. For more information, refer to Setting Up AI Developer Edition.
- Credentials to access AI Developer Edition API Service are obtained by registering for free. For more information, refer to Obtaining access to the AI Developer Edition API Service.
- Required modules and libraries are installed. For more information, refer to Installing the Python module and Installing the Java library.
- For shell samples: Bash version greater than or equal to 5.1.8 and curl version greater than or equal to 7.76.1.
- Verify that the AI Developer Edition Service is running. The service availability can be monitored on the status page, refer to AI Developer Edition System Status.
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.
Open a command prompt.
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-pythonThe installation completes and the success message is displayed. To compile and install the Python module from source, refer to Building the Python module.
Open a command prompt.
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-pythonThe 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.