MCPcopy Index your code
hub / github.com/BrendanParmer/NodeToPython / process_node

Function process_node

tools/node_settings_generator/parse_nodes.py:96–110  ·  view source on GitHub ↗
(node: str, section, version: Version)

Source from the content-addressed store, hash-verified

94 nodes_dict[node].attributes_[ntp_setting].append(version)
95
96def process_node(node: str, section, version: Version):
97 global nodes_dict
98 with mutex:
99 if node not in nodes_dict:
100 nodes_dict[node] = NodeInfo([], {})
101 nodes_dict[node].versions_.append(version)
102
103 attrs = section.find_all("dl", class_="py attribute")
104
105 for attr in attrs:
106 process_attr(attr, section, node, version)
107
108 datas = section.find_all("dl", class_="py data")
109 for data in datas:
110 process_attr(data, section, node, version)
111
112def download_file(filepath: str, version: Version, local_path: str) -> bool:
113 file_url = f"https://docs.blender.org/api/{version.point_str()}/{filepath}"

Callers 1

get_subclassesFunction · 0.85

Calls 2

process_attrFunction · 0.85
NodeInfoClass · 0.70

Tested by

no test coverage detected