Install intellicuspy server on a Linux machine with the below commands:
- #Navigate to PYTHONDIR (created in “Creating Python Environment” section)
cd PYTHONDIR
- #Activate the Python environment
source bin/activate
#Install pyaes through pip command
pip install pyaes
- #Install Intellicuspy
pip install –index-url https://test.pypi.org/simple/ –extra-index-url https://pypi.org/simple/ intellicuspy
- #Wait for successful message to come and then deactivate the environment
deactivate
Creating intellicuspy Configuration file
#intellicuspy needs a configuration file to run, read about the configuration and its properties at https://test.pypi.org/project/intellicuspy/
#Ideally the configuration file should look something like the below snippet:
{
“port”: 45460,
“log_level”: “DEBUG”,
“log_path”: “path/to/logs”,
“max_clients” : 10,
“request_timeout”: 600,
“flake8_errors_to_consider”: “E101,E112,E113,E9,F8”,
“encryption” : {
“to_encrypt”: “True”,
“key”: “”,
“iv”: “”
},
“load_models_while_startup”: “False”,
“model_load_info”: [{
“load_model_dir”: “path/to/models”,
“load_model_names”: [
“lg”,
“lg2”
],
“load_all_models”: “False”,
“module_name”: “pickle”,
“import_syntax”: “import pickle as pickle”
}]
}
# the value of key should be the value of IDEN_K property placed in ReportEngine.properties file.
# the value of iv should be the value of IDEN_V property placed in ReportEngine.properties file.
# the value of log_path should the path of a directory where one wants the intellicuspy logs to be created.
# save this file and note the directory, we will call this path as INTELLICUSPY_CONFIGURATION_PATH henceforth.
Starting intellicuspy
Start intellicuspy using the below commands:
- #Navigate to PYTHONDIR
cd PYTHONDIR
- #Activate Python environment
source bin/activate
- #Locate intellicuspy
#should be at PYTHONDIR/site-packages/lib directory
#navigate to that directory
cd PYTHONDIR/site-packages/lib/intellicuspy
- #Edit runpyserve.py
#provide INTELLICUSPY_CONFIGURATION_PATH (created above) in line #2 of runpyserve.py
#save runpyserve.py and exit from editor
- #Navigate to bin directory
cd bin
- #Run startintellicuspy.sh
./startintellicuspy.sh
#You will not be notified of any error or success message, please move further