Skip to main content

utils

Module for serialization and deserialization of models, algorithms and protocols.

Module

Functions

def bf_dump(bf_obj: Any)> Dict[str, Any]:

Method for serializing an object.

Arguments

  • bf_obj: The object we want to generate the schema dump for.

Raises

  • SchemaClassError: if the provided object is None.
def bf_load(dct: Dict[str, Any], registry: Mapping[str, Any])> Any:

Method for deserializing an object.