Skip to content

Add optional Pydantic model support#39

Open
RogerThomas wants to merge 5 commits into
mainfrom
support-pydantic-models
Open

Add optional Pydantic model support#39
RogerThomas wants to merge 5 commits into
mainfrom
support-pydantic-models

Conversation

@RogerThomas
Copy link
Copy Markdown
Owner

Summary

  • add an optional pydantic extra
  • expand a lone Pydantic BaseModel parameter into CLI options automatically
  • construct and validate the model before invoking the target function
  • document the integration and add it to the yeetr vs. typer comparison

Verification

  • task check
  • uv run pytest
  • env UV_CACHE_DIR=/tmp/uv-cache uv build
  • verified the wheel advertises the pydantic extra
  • uv run yeet app.py -n person --tol 0.25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant