MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / py_dict

Function py_dict

crates/python/tests/coverage/py_api_coverage_tests.rs:21–25  ·  view source on GitHub ↗
(py: Python<'py>, value: serde_json::Value)

Source from the content-addressed store, hash-verified

19}
20
21fn py_dict<'py>(py: Python<'py>, value: serde_json::Value) -> Bound<'py, pyo3::PyAny> {
22 crate::convert::json_to_py(py, &value)
23 .unwrap()
24 .into_bound(py)
25}
26
27fn with_event_loop<T>(py: Python<'_>, f: impl FnOnce(Bound<'_, PyAny>) -> T) -> T {
28 let asyncio = py.import("asyncio").unwrap();

Calls 1

json_to_pyFunction · 0.85

Tested by

no test coverage detected