ModuleSerializer
A somewhat hacky serializer that supports module-based serialization. Writes all module parameters to a dict with a given attribute. Serialization doesn’t support loading arbitrary python code, but deserialization does. Use at your own risk.
default_extension: str
default_loader: NoneType
default_attr: str
__init__(self, attr=None, loader=None):
@property
loader(self):
@property
attr(self):
convert(self, data):
deconvert(self, data):
serialize(self, file, data, **kwargs):
deserialize(self, file, key=None, **kwargs):