Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce new metadata model #1355

Merged
merged 32 commits into from
Dec 8, 2024
Merged

Introduce new metadata model #1355

merged 32 commits into from
Dec 8, 2024

Conversation

gutzbenj
Copy link
Member

@gutzbenj gutzbenj commented Sep 14, 2024

Dear @amotl ,

I'm working on a new data model for parameter definition based on pydantic models. What's your opinion on this?

@amotl
Copy link
Member

amotl commented Sep 16, 2024

Hi @gutzbenj. I recently became a fan of attrs, a bit more than I had been before, specifically after learning about its new @define API, which works wash & go and DWIM as hell for me.

Examples:

So, if your intentions are more to build a parameter model, than needing the whole validation machinery of Pydantic, this could maybe also spark your interest.

@gutzbenj gutzbenj force-pushed the gutzbenj/parameter branch 13 times, most recently from eb9ab59 to 3c3e2cf Compare December 3, 2024 18:23
@gutzbenj gutzbenj force-pushed the gutzbenj/parameter branch 8 times, most recently from da42b73 to 73e0bb5 Compare December 8, 2024 21:27
@gutzbenj gutzbenj marked this pull request as ready for review December 8, 2024 21:28
@gutzbenj gutzbenj changed the title Sketch: new metadata model Introduce new metadata model Dec 8, 2024
@gutzbenj gutzbenj merged commit 55f8895 into main Dec 8, 2024
7 of 15 checks passed
@gutzbenj gutzbenj deleted the gutzbenj/parameter branch December 8, 2024 21:54
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.

2 participants