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

Can python-autoclass be used with dataclasses/datafiles? #40

Open
markfaine opened this issue Jul 13, 2020 · 3 comments
Open

Can python-autoclass be used with dataclasses/datafiles? #40

markfaine opened this issue Jul 13, 2020 · 3 comments

Comments

@markfaine
Copy link

markfaine commented Jul 13, 2020

I'm looking at datafiles

I like the ORM mapping of yaml that dataclasses/datafiles provides but I also love the features that python-autoclass provides, however, I can't tell if they can be used together, if they would be redundant, complementary, or if one would interfere with the other. If they can work together, would the order that the annotations are specified matter?

Edit: changed link to the actual module I would like to use.

@smarie
Copy link
Owner

smarie commented Sep 22, 2020

Hi @markfaine I am deeply sorry to see this message just now ! For some reason, the "new and better" github notification system missed me several time between Spring-Summer. I hope this will stop happening!

There are tons of projects out there providing object serialization/deserialization to various targets, so I can't target all, obviously.
marshmallow seems to have gained quite a lot of popularity out there. On the other hand, pyfields is by far my preferred way of using autoclass (even easier now with this). So I'll rather try to provide a marshmallow plugin for pyfields to make the bridge to this whole ORM ecosystem.

@markfaine
Copy link
Author

Thanks, I like pyfields but I'm not familiar with marshmallow. I'll have to take a look.

@smarie
Copy link
Owner

smarie commented Sep 27, 2020

Ok @markfaine , Let me know!

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

No branches or pull requests

2 participants