Command linesΒΆ

  1. Creates an falcon application and starts it through a wsgi application
  2. Creates an falcon application to store machine learned models
  3. Encrypts password
  4. Uploads a machine model

Creates an falcon application and starts it through a wsgi application

Creates an falcon application and starts it through a wsgi server.

<<<

python -m lightmlrestapi start_mlrestapi --help

>>>

--OUT--

--ERR--
/var/lib/jenkins/workspace/lightmlrestapi/lightmlrestapi_UT_37_std/_venv/bin/python3.7: No module named lightmlrestapi

(original entry : make_ml_app.py:docstring of lightmlrestapi.cli.make_ml_app.start_mlrestapi, line 23)

Creates an falcon application to store machine learned models

Creates an falcon application and starts it through a wsgi server. The appplication stores machine learned models and runs predictions assuming all the necessary packages were installed.

<<<

python -m lightmlrestapi start_mlreststor --help

>>>

--OUT--

--ERR--
/var/lib/jenkins/workspace/lightmlrestapi/lightmlrestapi_UT_37_std/_venv/bin/python3.7: No module named lightmlrestapi

(original entry : make_ml_store.py:docstring of lightmlrestapi.cli.make_ml_store.start_mlreststor, line 25)

Encrypts password

Encrypts passwords for a REST API created by lightmlrestapi.

<<<

python -m lightmlrestapi encrypt_pwd --help

>>>

--OUT--

--ERR--
/var/lib/jenkins/workspace/lightmlrestapi/lightmlrestapi_UT_37_std/_venv/bin/python3.7: No module named lightmlrestapi

(original entry : make_encrypt_pwd.py:docstring of lightmlrestapi.cli.make_encrypt_pwd.encrypt_pwd, line 11)

Uploads a machine model

Uploads a machine learned model to a REST API created with lightmlrestapi. The code of this command line is equivalent to:

from lightmlrestapi.netrest import submit_rest_request, json_upload_model
req = json_upload_model(name=name, pyfile=pyfile, data=data)
submit_rest_request(req, login=login, pwd=pwd, url=url)

<<<

python -m lightmlrestapi upload_model --help

>>>

--OUT--

--ERR--
/var/lib/jenkins/workspace/lightmlrestapi/lightmlrestapi_UT_37_std/_venv/bin/python3.7: No module named lightmlrestapi

(original entry : make_ml_upload.py:docstring of lightmlrestapi.cli.make_ml_upload.upload_model, line 15)