lance-format/lance

working with pydantic model instances

Open

#1,106 opened on 2023年7月30日

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
 (平均マージ 6d 1h) (30d で 219 merged PRs)

説明

  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.

コントリビューターガイド