nvflare.utils.cli_utils module
- create_job_template_config(nvflare_config: ConfigTree, job_templates_dir: str | None = None) ConfigTree[source]
- Parameters:
job_templates_dir – specified job template directory
nvflare_config (ConfigTree) – The existing nvflare configuration.
- Returns:
The merged configuration tree.
- Return type:
ConfigTree
- create_poc_workspace_config(nvflare_config: ConfigTree, poc_workspace_dir: str | None = None) ConfigTree[source]
- Parameters:
poc_workspace_dir – specified poc_workspace_dir
nvflare_config (ConfigTree) – The existing nvflare configuration.
- Returns:
The merged configuration tree.
- Return type:
ConfigTree
- find_startup_kit_config_keys(nvflare_config: ConfigTree) List[str][source]
Return old startup-kit config keys that should no longer be persisted.
Get the path for the hidden nvflare configuration file. :param hidden_nvflare_dir: ~/.nvflare directory
- Returns:
The path to the hidden nvflare configuration file.
- Return type:
str
- get_package_root() Path[source]
- Get the nvflare package root folder, e.g.
/usr/local/python/3.10/lib/python3.10/site-packages/nvflare
- hocon_to_string(target_fmt: ConfigFormat, dst_config: ConfigTree)[source]