biqqles / dataclassy

A fast and flexible reimplementation of data classes
https://pypi.org/project/dataclassy
Mozilla Public License 2.0
82 stars 9 forks source link

Question - How does this play with dacite? #45

Open MrBlenny opened 3 years ago

MrBlenny commented 3 years ago

This project looks great!

I've been heavily using dacite - in particular, the from_dict method to initialise a nested data class from a nested dictionary.

Have you come across this library? What would be required for these to work together?

biqqles commented 3 years ago

No idea what would be required without trying it (I haven't used the library before). You can see https://github.com/biqqles/dataclassy/issues/37 for a similar scenario.

The core feature of a way to create instances recursively would be good and doesn't seem too difficult. I will think about adding it to this library.

biqqles commented 3 years ago

I added a quick implementation of this to the 'from_dict' branch. Would you be able to try it and tell me what you think?