flip_api.fl_services.services.pull_required_files ================================================= .. py:module:: flip_api.fl_services.services.pull_required_files Functions --------- .. autoapisummary:: flip_api.fl_services.services.pull_required_files.pull_required_files_json_to_assets Module Contents --------------- .. py:function:: pull_required_files_json_to_assets(fl_backend: flip_api.domain.schemas.types.FLBackend) -> None Pulls the per-backend ``required_files.json`` from S3 into the local assets folder. S3 is the single source of truth — there is no checked-in or in-code fallback. If the download fails the error is logged and re-raised; callers decide whether to proceed (model creation treats this as best-effort). This mirrors the base-application contract: without S3 there is nothing to bundle. :param fl_backend: The FL backend whose manifest to pull (``nvflare`` or ``flower``). :type fl_backend: FLBackend :raises Exception: If the object cannot be fetched from S3 or is not valid JSON.