Skip to content

Creating Pydantic objects in Rust and passing to the interpreter. #1364

Open
@PSU3D0

Description

@PSU3D0

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!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions