Installing AI Verify Developer Tools
Before You Begin
This page prepares your environment for development on AI Verify. By the end of this guided example, you should end up with the following folder structure.
<working directory>/
├── aiverify/
├── ai-verify-shared-library/
├── test-engine-core/
└── test-engine-core-modules/
├── aiverify-developer-tools/
├── README.md
├── ai-verify-algorithm-template/
├── ai-verify-plugin/
└── template_plugin/
├── my_plugin/
└── my_virtual_environment/
- Clone the required modules and selectively checkout dependencies needed for Developer Tools
After the sparse checkout, you should end up with these three folders in your aiverify project directory. Please take note of the test-engine-core-modules path, as you will need it later while testing the algorithm component.
Installing Dependencies
Install the following dependencies if they are not already available.
-
Install jq and zip
-
Install Python and its virtual environment packages
-
Install NodeJS
Preparing a Virtual Environment
We recommend setting up a virtual environment for your plugin project to ensure that these libraries will not mess up your main development environment.
-
Create a virtual environment
-
Activate your newly created virtual environment
-
Check that you're working from the virtual environment
-
Install plugin dependencies in your virtual environment
-
Install AI Verify Test Engine Core.
# Execute these in the aiverify directory cd test-engine-core pip install dist/test_engine_core-0.9.0.tar.gz # Head back to the aiverify directory cd ..
Note
AI Verify Test Engine currently runs Pandas V1.5.3. We do not support Pandas 2.x.x.
-
Install necessary requirements from
test-engine-core-modules
. -
Install dependencies and build AI Verify Frontend Shared Library
Installing AI Verify Developer Tools
Install AI Verify Developer Tools in your environment.
-
Clone our developer's repository. We recommend cloning this in the same directory you cloned aiverify.
-
Install AI Verify Plugin Tool
If the installation is successful, you should see a similar output as shown below.
ai-verify-plugin
$ ai-verify-plugin --help
ai-verify-plugin <cmd> [args]
Commands:
ai-verify-plugin generate-plugin [gid] Generate skeleton AI Verify plugin project [aliases: gp]
ai-verify-plugin generate-widget <cid> Generate skeleton AI Verify widget [aliases: gw]
ai-verify-plugin generate-inputblock <cid> Generate skeleton AI Verify input block [aliases: gib]
ai-verify-plugin generate-algorithm <cid> Generate skeleton AI Verify algorithm [aliases: ga]
ai-verify-plugin zip [pluginDir] Create the plugin zip file
ai-verify-plugin validate Validate AI Verify plugin
ai-verify-plugin test-widget Run the plugin tests for widgets and input blocks [aliases: testw]
ai-verify-plugin test-algorithm Run the plugin tests for algorithms [aliases: testa]
ai-verify-plugin test-all Run all the tests for widgets, input blocks and algorithms with default
options
ai-verify-plugin playground Launch the plugin playround
Options:
--help Show help [boolean]
cookiecutter
Congratulations! You are ready to create your first plugin.