Configuration

import knots_hub
import knots_hub.config

A simple configuration system for the Knots-hub runtime.

class knots_hub.config.HubConfig(local_install_path: ~pathlib.Path, installer: ~knots_hub.config.HubInstallerConfig | None = None, vendor_installer_config_paths: list[~pathlib.Path] = <factory>, skip_local_check: bool = False)

Options determining how the hub must be installed.

__init__(local_install_path: ~pathlib.Path, installer: ~knots_hub.config.HubInstallerConfig | None = None, vendor_installer_config_paths: list[~pathlib.Path] = <factory>, skip_local_check: bool = False) None
as_dict() dict[str, Any]
classmethod from_environment() HubConfig

Generate an instance from environment variables.

installer: HubInstallerConfig | None = None
local_install_path: Path
skip_local_check: bool = False
vendor_installer_config_paths: list[Path]
class knots_hub.config.HubInstallerConfig(version: str, path: Path)

Configuration indicating how to install the hub.

__init__(version: str, path: Path) None
path: Path
version: str