MCPcopy Create free account
hub / github.com/Pometry/Raphtory / base_graphql_module

Function base_graphql_module

raphtory-graphql/src/python/pymodule.rs:25–51  ·  view source on GitHub ↗
(py: Python<'_>)

Source from the content-addressed store, hash-verified

23}
24
25pub fn base_graphql_module(py: Python<'_>) -> Result<Bound<'_, PyModule>, PyErr> {
26 let graphql_module = PyModule::new(py, "graphql")?;
27 graphql_module.add_class::<PyGraphServer>()?;
28 graphql_module.add_class::<PyRunningGraphServer>()?;
29 graphql_module.add_class::<PyRaphtoryClient>()?;
30 graphql_module.add_class::<PyRemoteGraph>()?;
31 graphql_module.add_class::<PyRemoteEdge>()?;
32 graphql_module.add_class::<PyRemoteNode>()?;
33 graphql_module.add_class::<PyNodeAddition>()?;
34 graphql_module.add_class::<PyUpdate>()?;
35 graphql_module.add_class::<PyEdgeAddition>()?;
36 graphql_module.add_class::<PyRemoteIndexSpec>()?;
37 graphql_module.add_class::<PyPropsInput>()?;
38 graphql_module.add_class::<PySomePropertySpec>()?;
39 graphql_module.add_class::<PyAllPropertySpec>()?;
40
41 graphql_module.add_function(wrap_pyfunction!(encode_graph, &graphql_module)?)?;
42 graphql_module.add_function(wrap_pyfunction!(decode_graph, &graphql_module)?)?;
43 graphql_module.add_function(wrap_pyfunction!(schema, &graphql_module)?)?;
44 graphql_module.add_function(wrap_pyfunction!(python_cli, &graphql_module)?)?;
45 graphql_module.add_function(wrap_pyfunction!(
46 has_permissions_extension,
47 &graphql_module
48 )?)?;
49
50 Ok(graphql_module)
51}

Callers 3

_raphtoryFunction · 0.85
raphtory_netflowFunction · 0.85
_raphtory_customFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected