pydantic-core icon indicating copy to clipboard operation
pydantic-core copied to clipboard

Creating Pydantic objects in Rust and passing to the interpreter.

Open PSU3D0 opened this issue 1 year ago • 4 comments

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!

PSU3D0 avatar Jul 09 '24 15:07 PSU3D0