I have a text parser written in Rust and want to provide a Python interface to it using pyo3. The parser returns a HashMap within a HashMap and the values of the inner HashMap are of type serde_json::Value. When I try to return this as a PyObject I get an error that I am unable to solve. This is a
Tag: pyo3
How to call Python async function from Rust?
I have read this answer(How to call Rust async method from Python?) and what I want to do is the opposite of this. I want to call a Python async function and await it in tokio’s runtime. Is it possible? I have given it some tries but I am facing an error in the output. This is how my python