Skip to main content

A command line interface for initializing, packaging, and deploying Custom Apps to the Virtualitics AI Platform from a local development environment.

Project description

Virtualitics AI Platform CLI

Usage:

$ vaip [OPTIONS] COMMAND [ARGS]...

Options:

  • --version
  • --verbose / --no-verbose: [default: no-verbose]
  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Example Order of Commands: This purpose of this CLI is to build VAIP apps and seamlessly deploy them to the VAIP platform. Order of operations to create a fresh Python virtual environment however you choose, install this CLI, and then run:

  • config: Used to create a configuration file that will hold your API key, username, and host to deploy to. Can be run multiple times to create multiple configurations.
  • init: Initializes a VAIP app structure. After this step, write your app and place it within here.
  • build: Builds a VAIP App Python wheel file. You must be in the same directory and level as the pyproject.toml file.
  • use-context: Used to set the context referenced in the configuration file for deployment, defaults to last created configuration.
  • deploy: Deploys the VAIP App to a VAIP Instance using the current context from the configuration file.
  • publish: Publishes a VAIP App to other users in your organization. (Not currently implemented.)
  • destroy: Deletes the VAIP module and all apps from the instance. Does not delete flow history.

Example:

install virtualitics-cli
mkdir testing-the-cli
cd testing-the-cli
vaip init --project-name=testing_05b1 -v 1.0.0 --description="testing virtualitics-cli v0.0.4b1" --authors='me' --license='none'
** write your app and place the file within the directory created by vaip init (testing_05b1) **
vaip build --yes
vaip deploy dist/testing_05b1-1.0.0-py3-none-any.whl (path not requried)
** run the app in the VAIP **
vaip destory --project-name="testing_05b1" --yes

To delete an app:

Remove that app (ie, the file) from your project, build and redeploy.

Commands:

  • build: Builds a VAIP App Python wheel file.
  • config: Used to create or update a configuration that is used to deploy the app.
  • delete-context: Used to delete a specific context from the configuration file.
  • deploy: Deploys the VAIP App to a VAIP Instance.
  • destroy: Deletes a VAIP module, and all the apps of that module.
  • init: Initializes a VAIP app structure to start coding an app.
  • publish: Publishes a VAIP App to other users in your organization.
  • show-context: Used to display the configuration file.
  • use-context: Used to set the context referenced for deployment to the VAIP instance.

vaip build

Builds a VAIP App Python wheel file

Usage:

$ vaip build [OPTIONS]

Options:

  • -y, --yes: Build a wheel using pyproject.toml in current directory? [required]
  • --help: Show this message and exit.

vaip config

Used to create or update a configuration file in the default Typer directory within the CLI app. Requires a friendly name of a VAIP instance, host of a VAIP instance, and an API token, and a username.

Usage:

$ vaip config [OPTIONS]

Options:

  • -N, --name TEXT: User-specified friendly name for a given VAIP instance, i.e. predict-dev [required]
  • -H, --host TEXT: Backend hostname for a given VAIP instance, i.e. https://predict-api-dev.virtualitics.com [required]
  • -T, --token TEXT: API token used to verify the user’s access to the given VAIP instance [required]
  • -U, --username TEXT: Username associated with API token [required]
  • --help: Show this message and exit.

vaip delete-context

Used to delete a specific context from the configuration file.

Usage:

$ vaip delete-context [OPTIONS] CONTEXT_NAME

Arguments:

  • CONTEXT_NAME: The name of a previously configured context referenced in the configuration file to delete. [required]

Options:

  • --help: Show this message and exit.

vaip deploy

Deploys the VAIP App to a VAIP Instance

Usage:

$ vaip deploy [OPTIONS]

Options:

  • -f, --file TEXT: Absolute path to the wheel file if not in current project /dist
  • --help: Show this message and exit.

vaip destroy

Deletes a VAIP module, and all the apps of that module.

Usage:

$ vaip destroy [OPTIONS]

Options:

  • -n, --project-name TEXT: Project name to delete (ie, name in pyproject.toml) [required]
  • -y, --yes: [required]
  • --help: Show this message and exit.

vaip init

Initializes a VAIP app structure, and a pyproject.toml file that looks like this: [project] name = "vaip-apps" version = "0.1.1" description = "vaip example apps" authors = [{name = "Virtualitics Engineering", email = "engineering@virtualitics.com"}] license = {text = "MIT"} requires-python = ">= 3.11"

[build-system] requires = ["setuptools >= 61.0"] build-backend = "setuptools.build_meta"

Usage:

$ vaip init [OPTIONS]

Options:

  • -n, --project-name TEXT: Name for the VAIP App (No spaces or special chars besides '_') [required]
  • -v, --version TEXT: Version for the VAIP App (0.1.0) [required]
  • -d, --description TEXT: Description for the VAIP App [required]
  • -a, --authors TEXT: Authors for the VAIP App (email) [required]
  • -l, --licenses TEXT: Licenses for the VAIP App [required]
  • --help: Show this message and exit.

vaip publish

Publishes a VAIP App to other users in your group

Usage:

$ vaip publish [OPTIONS]

Options:

  • --help: Show this message and exit.

vaip show-context

Used to display the configuration file

Usage:

$ vaip show-context [OPTIONS]

Options:

  • --help: Show this message and exit.

vaip use-context

Used to set the context referenced for uploading in the config file

Usage:

$ vaip use-context [OPTIONS] CONTEXT_NAME

Arguments:

  • CONTEXT_NAME: The name of a previously configured context referenced in the configuration file. [required]

Options:

  • --help: Show this message and exit.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

virtualitics_cli-1.23.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file virtualitics_cli-1.23.1-py3-none-any.whl.

File metadata

  • Download URL: virtualitics_cli-1.23.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.1.109-118.189.amzn2023.x86_64

File hashes

Hashes for virtualitics_cli-1.23.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52116e5430db95e68426d9d820dfa3024126c8630abbe107d72ea72b985724b7
MD5 2a9719692cecc782a3679349b252e93b
BLAKE2b-256 c48506a0a620b95caf5fc64f0a7623c04ec3b743657d16a1a9b9a66d1e79536c

See more details on using hashes here.

Supported by

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