MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / write

Method write

misc/python/materialize/build_config.py:47–53  ·  view source on GitHub ↗
(cls, namespace: str, val: Any)

Source from the content-addressed store, hash-verified

45
46 @classmethod
47 def write(cls, namespace: str, val: Any):
48 cache = LocalState(LocalState.default_path())
49 cache.data[namespace] = val
50
51 Path(os.path.dirname(cache.path)).mkdir(parents=True, exist_ok=True)
52 with open(cache.path, "w+") as f:
53 toml.dump(cache.data, f)
54
55
56class TeleportLocalState:

Callers 15

writeMethod · 0.45
write_dockerfileMethod · 0.45
spawnMethod · 0.45
waitMethod · 0.45
mainFunction · 0.45
do_copyMethod · 0.45
changesFunction · 0.45
defsFunction · 0.45
defsFunction · 0.45
plansFunction · 0.45
arrangement_sizesFunction · 0.45

Calls 3

LocalStateClass · 0.85
default_pathMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected