(m: &Bound<PyModule>)
| 70 | use crate::python::graph::index::{PyIndexSpec, PyIndexSpecBuilder}; |
| 71 | |
| 72 | pub 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 | |
| 125 | pub fn base_iterables_module(py: Python<'_>) -> Result<Bound<'_, PyModule>, PyErr> { |
| 126 | let iterables_module = PyModule::new(py, "iterables")?; |
no outgoing calls
no test coverage detected