nvflare.private.fed.utils.site_config module

Helpers for projecting site_config metadata from a client’s merged config.

The client’s runtime config is the union of fed_client.json and resources.json. project_site_config drops the structural / local-only top-level keys so the remaining custom keys (labels, capabilities, custom resource hints, …) can be advertised to the server during registration.

project_site_config(config_data: dict) dict[source]

Project site_config from the merged client config.

Drops keys in SITE_CONFIG_EXCLUDED_TOP_LEVEL_KEYS and deep-copies the rest so the result is independent of the live config. May be empty.