MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / commit_to_disk

Method commit_to_disk

botasaurus/local_storage.py:39–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 self.json_data = json.load(json_file)
38
39 def commit_to_disk(self):
40 with open(self.json_path, "w") as json_file:
41 json.dump(self.json_data, json_file, indent=4)
42
43 def get_item(self, key: str, default = None) -> str:
44 if key in self.json_data:

Callers 4

refreshMethod · 0.95
set_itemMethod · 0.95
remove_itemMethod · 0.95
clearMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected