Install Algorithm
from ultipa import Connection
from ultipa import UltipaConfig,ULTIPA_REQUEST,ULTIPA,InsertConfig
defaultConfig = UltipaConfig()
defaultConfig.hosts=["host:port"]
defaultConfig.username="root"
defaultConfig.password="root"
conn = Connection.NewConnection(defaultConfig=defaultConfig)
ret = conn.installAlgo(ULTIPA_REQUEST.InstallAlgo(configPath="path/xxx.yml",
soPath="path/xxx.so"))
ret.Print()
Uninstall Algorithm
from ultipa import Connection
from ultipa import UltipaConfig,ULTIPA_REQUEST,ULTIPA,InsertConfig
defaultConfig = UltipaConfig()
defaultConfig.hosts=["host:port"]
defaultConfig.username="root"
defaultConfig.password="root"
conn = Connection.NewConnection(defaultConfig=defaultConfig)
ret = conn.uninstallAlgo(ULTIPA_REQUEST.UninstallAlgo("AlgoName"))
ret.Print()