ORNL-MDF / mist

Mist is a Python tool for storing, sharing, and using information about materials in models and simulations.
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Consider using Pydantic for validation #14

Open stvdwtt opened 4 months ago

stvdwtt commented 4 months ago

https://docs.pydantic.dev/latest/ The INTERSECT SDK makes heavy use of Pydantic. Among other things Pydantic extends Python dataclass and provides capabilities to validate against a predefined schema. That kind of dataclass might also be useful as my base data structures.