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

Method stream

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

Source from the content-addressed store, hash-verified

273 }
274
275 pub fn stream<'py>(
276 &'py self,
277 query: Query,
278 config: StreamConfig,
279 py: Python<'py>,
280 ) -> PyResult<Bound<'py, PyAny>> {
281 let inner = Arc::clone(&self.inner);
282
283 future_into_py(py, async move {
284 let query = query.try_convert().context("parse query")?;
285 let config = config.try_convert().context("parse config")?;
286
287 let inner = inner
288 .stream(query, config)
289 .await
290 .context("start inner stream")?;
291
292 Ok(QueryResponseStream::new(inner))
293 })
294 }
295
296 pub fn stream_events<'py>(
297 &'py self,

Callers 4

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls 1

try_convertMethod · 0.45

Tested by

no test coverage detected