lance-format/lance

working with pydantic model instances

Open

#1,106 opened on Jul 30, 2023

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Rust (695 forks)github user discovery
A-pythonenhancementgood first issue

Repository metrics

Stars
 (6,582 stars)
PR merge metrics
 (Avg merge 6d 1h) (219 merged PRs in 30d)

Description

  1. Currently we still require an explicit call to pydantic_to_schema when creating a table. Instead, we can create a LanceTable.from_pydantic_model() method that infers both the name and the schema. For the name we'll convert to snake_case automatically.

  2. To add pydantic model instances, currently we require the user to explicitly convert to a dictionary. Instead, we could just automatically do it under the hood.

Contributor guide