Building the Python Modules
The protegrity-ai-developer-python repository is part of the Protegrity AI Developer Edition suite. This repository provides the Python module for integrating Protegrity’s Data Discovery and Protection APIs into GenAI and traditional applications.
Customize, compile, and use the module as per your requirement.
Note: This module should only be built and used if the source and default behavior are to be changed. Ensure that the Protegrity AI Developer Edition is set up before installing this module.
For setup instructions, refer to installation steps.
Prerequisites
- Git is installed for cloning the repository.
- Python v3.11 and above is installed for compiling the module.
- For installing packages: pip
- Python Virtual Environment is set up for installing the module and its dependencies.
- Uninstall the
protegrity_developer_pythonmodule from the Python virtual environment if it is already installed.pip uninstall protegrity_developer_python
Build the protegrity-ai-developer-python module
Clone the repository.
git clone https://github.com/Protegrity-AI-Developer-Edition/protegrity-ai-developer-python.gitNavigate to the
protegrity-ai-developer-pythondirectory in the cloned location.Optional: Update the files in the Python source directory as required.
Activate the Python virtual environment.
Install the dependencies.
pip install -r requirements.txtBuild and install the Python module by running the following command from the root directory of the repository.
pip install .The installation completes and the success message is displayed.
Feedback
Was this page helpful?