We don’t just have a web platform, but also a CLI version of Innocuous Book!

Just follow these few simple steps to install and utilize Innocuous Book by command line.

****

  1. Package all things related to running this program into an .exe executable file by PyInstaller
Arguments Description
-m run library module as a script (terminates option list)
-F package the program into a single executable file (suitable for simpler code or only a single .py file)
python -m PyInstaller -F --add-data "/home/ubuntu/anaconda3/envs/pyinstall/lib/python3.8/site-packages/pyfiglet:./pyfiglet" innocuous.py
  1. Install into the system
sudo cp code/dist/innocuous /usr/bin/
  1. Install auto-complete program
sudo cp code/innocuous.sh /etc/bash_completion.d/

Usage commands

It has four commands for user to use, which are generate, upload, run and list.

innocuous [generate trial list upload]
  1. Generate config template: (Default save path[-o]: ./demo_config.json)
innocuous generate [-o <save to file>]
innocuous generate -o ~/config_tmep.json
  1. Upload model, function, config, dataset and requirements
innocuous upload [-m --model <path of model>] [-f --function <path of function>] [-c --config <path of config>] [-d --dataset <path of dataset>] [-r --requirements <path of requirements>]
innocuous upload [-m --model <path of model>] 
innocuous upload [-f --function <path of function>]
innocuous upload [-c --config <path of config>]
innocuous upload [-d --dataset <path of dataset>] 
innocuous upload [-r --requirements <path of requirements>]
  1. Run trial (model/function)
innocuous trial [-m --model <path of model>] [-f --function <path of function>] [-c --config <path of config>] [-d --dataset <path of dataset>] [-r --requirements <path of requirements>]
innocuous trial [-f --function <path of function>] [-c --config <path of config>] [-d --dataset <path of dataset>] [-r --requirements <path of requirements>]
  1. List what was already uploaded