Open lucas-nelson-uiuc opened 6 days ago
Hi @lucas-nelson-uiuc,
Thanks for trying out erdantic!
I'd like to better understand your use case. Some questions here:
CommonFinancialStatement.transform
come from? Is this a custom factory method on the CommonFinancialStatement
that you've written?RawFinancialStatement
and CommonFinancialStatement
models? As a practical consideration, we need this metadata in order to know the relationship between these two models in order to build the diagram.
Hey! Just found out about
erdantic
through Python Bytes. Looks great and love messing with it so far.I work with a lot of Pydantic models to facilitate PySpark transformations - given a model, you can read, transform, and validate a raw file or loaded DataFrame against a model. Since it's built on Pydantic, it allows some nice features (nesting models, ease of documentation, etc.) and encourages declarative/composable pipelines.
However, instead of composing fields as collections of other models, I convert data from one model to the next. Most examples look like this:
Using
erdantic
, would it be possible to construct an ER diagram between multiple models that simply describe how data is transformed? Please let me know if I need to explain my use case some more - thank you!