MCPcopy Create free account
hub / github.com/alibaba/GraphScope / write_yaml_file

Function write_yaml_file

python/graphscope/gsctl/utils.py:36–39  ·  view source on GitHub ↗

Writes python object to the YAML file.

(data, path)

Source from the content-addressed store, hash-verified

34
35
36def write_yaml_file(data, path):
37 """Writes python object to the YAML file."""
38 with open(path, "w") as file:
39 yaml.dump(data, file)
40
41
42def is_valid_file_path(path) -> bool:

Callers 4

set_and_writeMethod · 0.90
update_and_writeMethod · 0.90
remove_and_writeMethod · 0.90
load_gs_configFunction · 0.90

Calls 2

openFunction · 0.85
dumpMethod · 0.65

Tested by

no test coverage detected