nvflare.tool.code_pre_installer.install module

define_pre_install_parser(cmd_name: str, sub_cmd)[source]

Define parser for install command.

install(args)[source]

Run install command.

install_app_code(app_code_zip: Path, install_prefix: Path, site_name: str, target_shared_dir: str, delete: bool) None[source]

Install application code from zip file.

Parameters:
  • app_code_zip – Path to application code zip file

  • install_prefix – Installation prefix directory

  • site_name – Target site name

  • target_shared_dir – Target shared directory path

install_requirements(requirements_file: Path)[source]

Install Python packages from requirements.txt.