MCPcopy Create free account
hub / github.com/BabitMF/bmf / create_python_module

Function create_python_module

bmf/c_modules/test/test_python_module.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void create_python_module(JsonParam &node_param,
27 std::shared_ptr<PythonModule> &python_module) {
28 std::string module_name;
29 dump_node_json(node_param);
30 node_param.get_string("module", module_name);
31 JsonParam node_option_json;
32 node_param.get_object("option", node_option_json);
33 python_module = std::make_shared<PythonModule>(module_name, module_name, 0,
34 node_option_json);
35}
36
37void get_python_module_info(JsonParam &node_param, std::string &module_name,
38 std::string &option) {

Callers 1

TESTFunction · 0.85

Calls 3

dump_node_jsonFunction · 0.85
get_stringMethod · 0.80
get_objectMethod · 0.80

Tested by

no test coverage detected