FileBackedObjectManager

Provides an interface to back an object with a serializer

default_directory: PersistenceLocation

 

__init__(self, obj, chk=None, loc=None, checkpoint_class=<class 'McUtils.Scaffolding.Checkpointing.NumPyCheckpointer'>): 
  • obj: object

    the object to back

  • chk: Checkpointer

    a checkpointer to manage storing attributes

  • loc: str

    the location where attributes should be stored

  • checkpoint_class: Type[Checkpointer]

    a subclass of Checkpointer that implements the actual writing to disk

 

@property
basename(self): 

 

get_basename(self): 

 

save_attr(self, attr): 

 

load_attr(self, attr): 

Feedback

Examples

Templates

Documentation