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: object

Persist state using shelve.

build_key(type, iden)
cleanup()
restore(keys, read_json: bool = False)
save(key_value_pairs)