pydantic-core
pydantic-core copied to clipboard
Creating Pydantic objects in Rust and passing to the interpreter.
What's the best way to do this?
I'd like to avoid passing JSON via Pyo3 to python and THEN creating the model.
Use case:
I am moving bounding box processing logic in my library Docprompt into Rust. Documents can have tens of thousands of bounding boxes, so small overhead becomes an issue.
Thank you for the help!