Skip to main content

No project description provided

Project description

CAPS Command Line Interface

A repository to discuss, define and implement an approach for easily uploading models

Prerequisites

What things you need to install to run the software and how to install them

Python3

Installing

A step by step series of examples that tell you how to get a development env running

MacOS and Linux Guide for creating virtual environment

Create a python3 virtual environment from the parent directory of this project

python3 -m venv caps-cli-dev

Activate the python3 virtualenv

source caps-cli-dev/bin/activate

Windows Guide for creating virtual environment

Create a python3 virtual environment from the parent directory of this project

py -m venv caps-cli-dev

Activate the python3 virtualenv

.\caps-cli-dev\Scripts\activate

For more info visit this

Building the Project

Now navigate to the project folder (ModelCatalogInsertion)

cd ModelCatalogInsertion

Build the project

python3 setup.py install

Running the Project

Help functionality in the CLI

caps-cli --help

Use this command to configure username and password for the Model Catalog API

caps-cli configure --profile=<NAME_OF_PROFILE>

Use this command to know the details of each CLI function (options, arguments)

caps-cli <initialize, push, validate> --help

Run this command to test the template creation functionality (with 2 inputs, 3 outputs and 1 parameter)

caps-cli initialize -i 2 -o 3 -p 1

Running the above command will generate a yaml outline. By default this will create the outline in the current directory, use -d path/to/location to speciy a location. By default the yaml will be named example_yaml.yaml, user can also use -d fileName.yaml to name the output (note the user must specify .yaml after the name. Otherwise the program does not know if it is a directory or filename). By default this will not override an existing file if they share the same name. use flag -f to force override.

Run this command to transform the input YAML into a postable JSON object

caps-cli push --profile=<NAME_OF_PROFILE> <path_of_yaml_file_from_root_of_the_project>

Run this command to validate the JSON schema obtained by using the above command

caps-cli validate <path_of_json_file_from_root_of_the_project>

Use this command to deactivate the python virtual environment

deactivate

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

caps-cli-0.3.0.tar.gz (11.2 kB view details)

Uploaded Source

File details

Details for the file caps-cli-0.3.0.tar.gz.

File metadata

  • Download URL: caps-cli-0.3.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

File hashes

Hashes for caps-cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f19071a4533d81b3aa01078a5c00262284eec0c3284f1b5a566910633150f95c
MD5 3204a4fa03b6a0a83962371d5a8abcbc
BLAKE2b-256 cdcccf752a2e3997747648ae006b00cbf8496ff9464960d7c02280fbb45ce68a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page