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

Function add_raphtory_classes

raphtory/src/python/packages/base_modules.rs:72–123  ·  view source on GitHub ↗
(m: &Bound<PyModule>)

Source from the content-addressed store, hash-verified

70use crate::python::graph::index::{PyIndexSpec, PyIndexSpecBuilder};
71
72pub fn add_raphtory_classes(m: &Bound<PyModule>) -> PyResult<()> {
73 //Graph classes
74 add_classes!(
75 m,
76 PyGraphView,
77 PyGraph,
78 PyPersistentGraph,
79 PyGraphEncoder,
80 PyNode,
81 PyNodes,
82 PyPathFromNode,
83 PyPathFromGraph,
84 PyMutableNode,
85 PyEdge,
86 PyEdges,
87 PyNestedEdges,
88 PyMutableEdge,
89 PyProperties,
90 PyPropValueList,
91 PyPropType,
92 PyMetadata,
93 MetadataView,
94 PyTemporalProperties,
95 PropertiesView,
96 PyTemporalProp,
97 PyEventTime,
98 PyOptionalEventTime,
99 PyHistory,
100 PyHistoryTimestamp,
101 PyHistoryDateTime,
102 PyHistoryEventId,
103 PyIntervals,
104 PyWindowSet,
105 PyProp
106 );
107
108 #[cfg(feature = "search")]
109 add_classes!(m, PyIndexSpecBuilder, PyIndexSpec);
110
111 #[pyfunction]
112 /// Return Raphtory version.
113 ///
114 /// Returns:
115 /// str:
116 pub(crate) fn version() -> String {
117 String::from(crate::version())
118 }
119
120 m.add_function(wrap_pyfunction!(version, m)?)?;
121
122 Ok(())
123}
124
125pub fn base_iterables_module(py: Python<'_>) -> Result<Bound<'_, PyModule>, PyErr> {
126 let iterables_module = PyModule::new(py, "iterables")?;

Callers 3

_raphtoryFunction · 0.85
raphtory_netflowFunction · 0.85
_raphtory_customFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected