Adds deepaas-cli command to use API methods from the command line
Created by: vykozlov
Added files: add cli.py, deepaas-cli.rst Modified: setup.cfg
Description
Add deepaas-cli script which provides command line interface (CLI) to DEEPaaS models that are loaded through the deepaas.v2.models
entrypoint API. One gets access to the same get_metadata, warm, predict, and train methods with all corresponding options as with DEEPaaS REST API. To get all available flags for the method, one has to call
deepaas-cli <method> --help
.
added/modified files:
- added cli.py
- modified setup.cfg
- added deepaas-cli.rst
Type of change
Please delete options that are not relevant.
-
New feature (non-breaking change which adds functionality) -
This change requires a documentation update -
This change is a documentation update
How Has This Been Tested?
I can get_metadata with the dogs_breed_det, obj_detect_pytorch applications, do train, predict with dogs_breed_det, predict with obj_detect_pytorch (this is what was tested by, not that other variants do not work). MODS application (Stefan) also passed all tests, i.e. able to do get_metadata, predict, train image-classification-tf (Ignacio) also tested.
-
fully tested on dogs_breed_det, partial test on imgclas, obj_detect_pytorch -
fully tested on MODS -
fully tested on image-classification-tf
Checklist:
-
I have performed a self-review of my own code -
I have commented my code, particularly in hard-to-understand areas -
I have made corresponding changes to the documentation -
My changes generate no new warnings -
I have added tests that prove my fix is effective or that my feature works -
New and existing unit tests pass locally with my changes