nvflare.fuel.data_event.utils module

get_scope_property(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 property is not found

Returns:

set_scope_property(scope_name: str, key: str, value: Any)[source]

Save the specified property of the specified scope (globally). :param scope_name: name of the scope :param key: key of the property to be saved :param value: value of property

Returns: None