Skip to main content

An easy-to-use command line interface for initializing, packaging, and deploying Custom Apps to a deployed instance of VAIP from within a local development environment.

Project description

vaip

Usage:

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

Options:

  • --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.

General 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.)

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 a configuration file in ~/.virtualitics/config.conf (DEFAULT_CONTEXT_PATH) Requires a friendly name of a VAIP instance, host of a VAIP instance, and an API token.

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-prd.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 deploy

Deploys the VAIP App to a VAIP Instance

Usage:

$ vaip deploy [OPTIONS]

Options:

  • -fr, --force-reinstall: Force reinstall of the module.
  • -f, --file TEXT: Absolute path to the wheel file if not in current project /dist
  • --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 rollback

Roll back the deployment of the most recently deployed VAIP App

Usage:

$ vaip rollback [OPTIONS]

Options:

  • --help: Show this message and exit.

vaip use-context

Used to set the context referenced in the config file

Usage:

$ vaip use-context [OPTIONS] NAME

Arguments:

  • 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 Distribution

virtualitics_cli-0.4.0b1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

virtualitics_cli-0.4.0b1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file virtualitics_cli-0.4.0b1.tar.gz.

File metadata

  • Download URL: virtualitics_cli-0.4.0b1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.1.97-104.177.amzn2023.x86_64

File hashes

Hashes for virtualitics_cli-0.4.0b1.tar.gz
Algorithm Hash digest
SHA256 141b3eea790b292809293c4b7a397bd93810c05c1f3034720bf2e708957cef2a
MD5 df465eaf820ce4f5348fbf41eaf36c6e
BLAKE2b-256 6a2e364439350ed939c6397f1216138c094800f6d94a2d9f42679d722a6f50a4

See more details on using hashes here.

File details

Details for the file virtualitics_cli-0.4.0b1-py3-none-any.whl.

File metadata

  • Download URL: virtualitics_cli-0.4.0b1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.1.97-104.177.amzn2023.x86_64

File hashes

Hashes for virtualitics_cli-0.4.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc6b94c91ff003872b9dcc83730905a182d0280f5ec47626b88e5fee4e998cc5
MD5 a8d9c06db54dfe444821941fc666a7ef
BLAKE2b-256 e61079ae49cefebaf0ec646c1f65962d5f93b8da0e86604107bf4c699223a3b3

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