nvflare.private.fed.utils.fed_utils module¶
- add_custom_dir_to_path(app_custom_folder, new_env)[source]¶
Util method to add app_custom_folder into the sys.path and carry into the child process.
- authorize_build_component(config_dict, config_ctx, node, fl_ctx: FLContext, event_handlers) str[source]¶
- get_scope_prop(scope_name: str, key: str, default=None) Any[source]¶
Get the value of a specified property from the specified scope. :param scope_name: name of the scope :param key: key of the scope :param default: value to return if the prop is not found
Returns:
- security_init(secure_train: bool, site_org: str, workspace: Workspace, app_validator: AppValidator, site_type: str)[source]¶
To check the security content if running in security mode.
- Parameters:
secure_train (bool) – if run in secure mode or not.
site_org – organization of the site
workspace – the workspace object.
app_validator – app validator for application validation
site_type (str) – server or client. fed_client.json or fed_server.json