MCPcopy Create free account
hub / github.com/enviodev/hypersync-client-python / collect

Method collect

src/lib.rs:89–110  ·  view source on GitHub ↗
(
        &'py self,
        query: Query,
        config: StreamConfig,
        py: Python<'py>,
    )

Source from the content-addressed store, hash-verified

87 }
88
89 pub fn collect<'py>(
90 &'py self,
91 query: Query,
92 config: StreamConfig,
93 py: Python<'py>,
94 ) -> PyResult<Bound<'py, PyAny>> {
95 let inner = Arc::clone(&self.inner);
96
97 future_into_py(py, async move {
98 let query = query.try_convert().context("parse query")?;
99 let config = config.try_convert().context("parse config")?;
100
101 let res = inner
102 .collect(query, config)
103 .await
104 .context("collect arrow")?;
105
106 let res = convert_response(res).context("convert response to pyarrow")?;
107
108 Ok(res)
109 })
110 }
111
112 pub fn collect_events<'py>(
113 &'py self,

Callers 8

mainFunction · 0.95
fromMethod · 0.45
decode_inputs_syncMethod · 0.45
decode_implMethod · 0.45
convert_event_responseFunction · 0.45
decode_implMethod · 0.45

Calls 2

convert_responseFunction · 0.85
try_convertMethod · 0.45

Tested by

no test coverage detected