Giter Site home page Giter Site logo

modelcataloginsertion's Introduction

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 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 file named as insertion_template.json in root directory

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

caps-cli push <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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.