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

Provide python-attrs classes? #37

Open
holtgrewe opened this issue Mar 10, 2023 · 1 comment
Open

Provide python-attrs classes? #37

holtgrewe opened this issue Mar 10, 2023 · 1 comment

Comments

@holtgrewe
Copy link
Contributor

First, thank you for this great resource.

What about providing python attrs based classes for representing the data structures? This would also double at documenting the meaning of the structures.

Serialization using cattrs would enable typed import of the data.

@davmlaw
Copy link
Contributor

davmlaw commented Mar 21, 2023

I haven't used attrs, but have enjoyed using data classes in other projects.

As for a data/protocol - I like JSON as every language can read the files or consume the REST API so it would have to be in addition to JSON

I do like the idea of being able to generate docs from the type annotated structure.

I'll have a play and see how it looks sometime

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