fedn.common.storage.models package

Submodules

fedn.common.storage.models.memorymodelstorage module

class fedn.common.storage.models.memorymodelstorage.MemoryModelStorage[source]

Bases: ModelStorage

exist(model_id)[source]
Parameters:

model_id

Returns:

get(model_id)[source]
Parameters:

model_id

Returns:

get_meta(model_id)[source]
Parameters:

model_id

Returns:

get_ptr(model_id)[source]
Parameters:

model_id

Returns:

set_meta(model_id, model_metadata)[source]
Parameters:
  • model_id

  • model_metadata

fedn.common.storage.models.modelstorage module

class fedn.common.storage.models.modelstorage.ModelStorage[source]

Bases: ABC

abstract exist(model_id)[source]
Parameters:

model_id

abstract get(model_id)[source]
Parameters:

model_id

abstract get_meta(model_id)[source]
Parameters:

model_id

abstract set_meta(model_id, model_metadata)[source]
Parameters:
  • model_id

  • model_metadata

fedn.common.storage.models.tempmodelstorage module

Module contents