vpip.commands.install

install command.

vpip.commands.install.get_pkg_from_url(url)
vpip.commands.install.install_global(packages, upgrade=False, latest=False)

Install global packages.

Parameters:
  • packages (list[str]) – List of package name.

  • upgrade (bool) – Upgrade package. By default, the function skipped already installed packages.

  • latest (bool) – Upgrade to the latest version. By default, only compatible versions are selected.

vpip.commands.install.install_global_url(url)
vpip.commands.install.install_local(packages, dev=False, **kwargs)

Install local packages and save to dependency.

Parameters:
  • packages (list[str]) – List of package name.

  • dev (bool) – If true then save to development depedency. Otherwise, save to production dependency.

  • kwargs (dict) – Other arguments are sent to vpip.pip_api.install().

vpip.commands.install.install_local_first_time()

Create the venv and install all dependencies.

If the lock file exists, execute pip install -r requirements-lock.txt.

Otherwise pip install -e . && pip install -r requirements.txt.

vpip.commands.install.run(ns)