nvflare.private.json_configer module¶
- class JsonConfigurator(config_file_name: str | List[str], base_pkgs: List[str], module_names: List[str], exclude_libs=True, num_passes=1)[source]¶
Bases:
JsonObjectProcessor
,ComponentBuilder
To init the JsonConfigurator.
- Parameters:
config_file_name – config filename or list of JSON config file names
base_pkgs – base packages need to be scanned
module_names – module names need to be scanned
exclude_libs – True/False to exclude the libs folder
num_passes – number of passes to parsing the config
- finalize_config(config_ctx: ConfigContext)[source]¶
- process_config_element(config_ctx: ConfigContext, node: Node)[source]¶
- process_element(node: Node)[source]¶
This method is called by the scan() function for each JSON element scanned.
- Parameters:
node – the node representing the JSON element
- start_config(config_ctx: ConfigContext)[source]¶