Package: leanda
Leanda-CLILeanda Command Line Interface (CLI) is intended for installation on users computers and will serve as another "client" for Leanda platform.QuickstartInstall leanda-cli via pip:pipinstallleandaRun help command:leanda-hFor the next commands you need to set the next environment variables:WEB_API_URL,WEB_STORAGE_API_URLandIDENTITY_SERVER_URLLogin to Leanda:leandalogin-umy_name-pmy_passwordGet categories list:leandacategoriesRun livesync command:leandalivesync-l./leanda-sync-folder./leanda-sync-folderis a local folder path.Commands SummaryCommandUsageleandaloginAllows to login and store the update session information for an Leanda user.leandawhoamiCheck authorization and explore session data.leandalogoutDo logout. Session data is removed.leandapwdIdentify current Leanda working directory.leandacdChange Leanda's current working directory.leandalsBrowse remote Leanda folder.leandarmAllows to remove file or folder.leandauploadAllows uploading a local file into the BLOB (raw file) store.leandadownloadAllows to download an Leanda file.leandalivesyncTwo-way synchronization of local folder with the Leanda user's folder.leandaitemsAllows to list all items from Leanda using queries.leandamodelsAllows to list models from Leanda using queries.leandarecordsetsAllows to list recordsets from Leanda using queries.leandatrainAllows to run Machine Learning command train.leandapredictAllows to run Machine Learning command predict.leandacategoriesAllows to initialize category tree with basic structure.loginAllows to login and reset session information for an Leanda user.Parameters forlogin-u,--usernameyourleandausername.
-p,--passwordyourleandapassword
-v,--verbositysetverbositylevel.Examples:leandalogin-u<user-name>-p<password>
leandalogin--verbosity-u<user-name>-p<password>
leandalogin-v-u<user-name>-p<password>
leandalogin-vv-u<user-name>-p<password>
leandalogin-u<user-name>-p
Password:whoamiCheck authorization and explore session data.Parameters forwhoami-v,--verbositysetverbositylevel.Examples:leandawhoami--verbosity
leandawhoami-vv
leandawhoami-vvvlogoutDo logout. Session data is removed.Parameters forlogoutNo parametersExamples:leandalogoutpwdIdentify current Leanda working directory.Parameters forpwd-v,--verbositysetverbositylevel.Examples:leandapwdleandapwd--verbosity
leandapwd-vv
leandapwd-vvvlsBrowse remote Leanda folder.Parameters forlscontainer-RemoteLeandauser's folder or none for current working folder.Leanda user'sfoldercanbechoosedbyitsfullidsystemwideorbysubstringforsubfoldersincurrentfolder.Substringcomparedtofoldernamestartingfromthebegginingortofolderidending.
-s,--size-Reportpagelength(defaultvalue10)-p,--page-Reportpagenumber(defaultvalue1)Examples:leandalsc1cc0000-5d8b-0015-e9e3-08d56a8a2e01
leandals2e01
leandals-p10
leandals-s20-2cdChange Leanda's current working directory.Parameters forcdcontainer-RemoteLeandauser's folder, none for home  folder or '..' forparent folder. Leanda user'sfoldercanbechoosedbyitsfullidsystemwideorbysubstringforsubfoldersincurrentfolder.Substringcomparedtofoldernamestartingfromthebegginingortofolderidending.Examples:leandals
File33.molRecords(1)Processedc1cc0000-5d8b-0015-e9e3-08d56a8a2e01combinedlysomotrophRecords(55)Processed00160000-ac12-0242-c20e-08d56e29a481

leandacd33leandacda481
leandacdleandacd..
leandacdc1cc0000-5d8b-0015-e9e3-08d56a8a2e01rmAllows to remove file or folderParameters forrmcontainer-RemoteLeandauser's folder. Leanda user'sfoldercanbechoosedbyitsfullidsystemwideorbysubstringforsubfoldersincurrentfolder.Substringcomparedtofoldernamestartingfromthebegginingortofolderidending.Examples:leandarma481
leandarmabc
leandarmc1cc0000-5d8b-0015-e9e3-08d56a8a2e01uploadAllows uploading a local file into the BLOB (raw file) store.Parameters foruploadcontainer-RemoteLeandauser's folder, none for working folder.Leanda user'sfoldercanbechoosedbyitsfullidsystemwideorbysubstringforsubfoldersincurrentfolder.Substringcomparedtofoldernamestartingfromthebegginingortofolderidending.
-p,--path-pathtolocalfile
-n,--name-nameforfile
-m,--meta-pathtomodeldescriptioninjsonoryamlformats
-v,--verbositysetverbositylevel.Examples:leandaupload-ppath-to-file
leandaupload-ppath-to-file1-ppath-to-file2-ppath-to-file3
leandaupload-ppath-to-file-nnew-nametofile'filename'leandaupload-ppath-to-file-mpath-to-model.json
leandaupload-ppath-to-file-mpath-to-model.yamldownloadAllows downloading a remote file to local host.Parameters fordownloadcontainer-RemoteLeandauser's folder, none for working folder.Leanda user'sfoldercanbechoosedbyitsfullidsystemwideorbysubstringforsubfoldersincurrentfolder.Substringcomparedtofoldernamestartingfromthebegginingortofolderidending.
-o,--output-Pathtofileordirectorytosave.
-f,--force-Forceoverwriteiffileexists.Examples:leandauploadabc-opath-to-file
leandauploada481-f-opath-to-file1
leandauploadc1cc0000-5d8b-0015-e9e3-08d56a8a2e01-opath-to-filelivesyncTwo-way synchronization of local folder with the Leanda user's folder. Comparision between folders based on file names. For more precise comparision see -ul and -ur keys.-l,--local-folder-Pathtolocalfolderornoneforcurrentworkingdirectory-r,--remote-folder-RemoteLeandauser's folder or none for current working folder.Leanda user'sfoldercanbechoosedbyitsfullidsystemwideorbysubstringforsubfoldersincurrentfolder.Substringcomparedtofoldernamestartingfromthebeginingortofolderidending.-ul,--update-local-ComparebynameandLeandafile'sversion-ur,--update-remote-Comparebynameandlastmodificationtime.Examples:leandalivesync-labc-rc1cc0000-5d8b-0015-e9e3-08d56a8a2e01
leandalivesync-l/path/to/folder-f-r2e01-ul
leandalivesync-uritemsAllows to list all items from Leanda using queries.-q,--query-Filtermodelsbysubquery-n,--name-Filtermodelsbysubstring-s,--short-notation-PathtoyamlfilewithlistofshortnotationsExample-p.radius:MachineLearningModelInfo.Fingerprints.Radius-v,--verbosity=0-Setverbositylevel.-v-displayquerystring,-vv-displayrecords,-f,--format=(json|yaml)-SetmodelverbosityoutputformatExamples:leandaitems
leandaitems-v
leandaitems-vv
leandaitems-npng
leandaitems-q"SubType eq 'Model' and MachineLearningModelInfo.Method eq 'Naive Bayes'"-vv-fjson
leandaitems-q"type=Model,prop.chem=MOST_ABUNDANT_MASS,prop.fields=logs"-ssample_files/short_notations.yaml
leandaitems-q"SubType eq 'Model' and MachineLearningModelInfo.Fingerprints.Size gt 200"-vv-fyamlmodelsAllows to list models from Leanda using queries. Same asitems, but add preset filterSubType eq 'Model'Examples:leandamodels
leandamodels-v
leandamodels-vv
leandaitems-nada
leandamodels-q"MachineLearningModelInfo.Method eq 'Naive Bayes'"-vv-fjson
leandamodels-q"type=Model,prop.chem=MOST_ABUNDANT_MASS,prop.fields=logs"-ssample_files/short_notations.yaml
leandamodels-q"MachineLearningModelInfo.Fingerprints.Size gt 200"-vv-fyamlrecordsetsAllows to list recordsets from Leanda using queries. Same asitems, but add preset filterSubType eq 'Records'Examples:leandarecordsets
leandarecordsets-v
leandarecordsets-vv
leandarecordsets-ncombined
leandarecordsets-q"MachineLearningModelInfo.Method eq 'Naive Bayes'"-vv-fjson
leandarecordsets-q"type=Model,prop.chem=MOST_ABUNDANT_MASS,prop.fields=logs"-ssample_files/short_notations.yaml
leandarecordsets-q"MachineLearningModelInfo.Fingerprints.Size gt 200"-vv-fyamltrainAllows to run Machine Learning command train.container-RemoteLeandauser's folder, none for working folder.Leanda user'sfoldercanbechoosedbyitsfullidsystemwideorbysubstringforsubfoldersincurrentfolder.Substringcomparedtofoldernamestartingfromthebegginingortofolderidending.-m,--meta-Modelmetadatainjsonoryamlformats-f,--folder-name-OutputfoldernameExamples:leandatrain00130000-ac12-0242-0f11-08d58dbc7b8b-ftest1.model-msample_files/train_sdf_model.yaml
leandatrain08d58dbc7b8b-ftest2.model-msample_files/train_sdf_model.yaml
leandatrainbdata_solubility.sdf-ftest3.model-msample_files/train_sdf_model.yaml
leandatraindata_solubility.sdf-ftest4.model-msample_files/train_sdf_model.yaml
leandatraindata_solu-ftest5.model-msample_files/train_sdf_model.yamlpredictAllows to run Machine Learning command predict.-f---folder-name-Outputfoldername-m---model-Leandamodel's file id.-r - --recordset - Leanda recordsets'sfileid.Examples:leandapredict-ffolder.predict-m7ceef61a-cf7d-41d9-a1f0-19874a2b31e9-r000e0000-ac12-0242-36bb-08d585329c5acategoriesAllows to initialize category tree with basic structure.-rm,--remove-Removeallcategories-i,--init-Initializecategoriesfromcategories.jsonfiledataExamples:leandacategories#get list of categoriesleandacategories-rm
leandacategories-i