tron.serialize.runstate.shelvestore module¶
- class tron.serialize.runstate.shelvestore.Py2Shelf(filename, flag='c', protocol=2, writeback=False)¶
Bases:
Shelf- delete(key)¶
- class tron.serialize.runstate.shelvestore.ShelveKey(type, iden)¶
Bases:
object- iden¶
- property key¶
- type¶
- class tron.serialize.runstate.shelvestore.ShelveStateStore(filename)¶
Bases:
objectPersist state using shelve.
- cleanup()¶
- restore(keys: list[tron.serialize.runstate.shelvestore.ShelveKey], read_json: bool = False) dict[tron.serialize.runstate.shelvestore.ShelveKey, Any]¶
- save(key_value_pairs)¶