Passing Pydantic models into nanobind #1171
Unanswered
andy-bell101
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just wondering how best to achieve this. I want to use pydantic in Python then get C++ to do the heavy lifting. It seems like the simplest way would be to turn my parsed model into a dictionary via model_dump() then in C++ convert that into the nested structs. But then I have to maintain the model in two different places. Is there a better way?
Beta Was this translation helpful? Give feedback.
All reactions