nvflare.apis.utils.job_utils module

convert_legacy_zipped_app_to_job(zip_data: bytes) bytes[source]

Convert a legacy app in zip into job layout in memory.

Parameters:

zip_data – The input zip data

Returns:

The converted zip data

load_job_def_bytes(from_path: str, def_name: str) bytes[source]

Load a job definition from specified path and return zipped bytes

Parameters:
  • from_path – path where the job definition is located

  • def_name – name of the job

Returns: