-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Code generator #64
Comments
It'll be a good starting point to write the generator based on this project: https://github.com/dropbox/mypy-protobuf/blob/master/python/protoc-gen-mypy The mypy style annotations in pyi files it generates are actually pretty close to your |
An off-topic suggestion BTW, since the package is called |
Or generate *.proto files for others from the dataclasses? |
Is it still relevant? My project would benefit from such functionality, so I might try to implement it. |
@mbednarski I'd assume so. Feel free to submit a pull request anyway |
dumb q - is there already code to do the reverse? |
@EricCousineau-TRI no, there wasn't such a thing |
For 3rd-party APIs people often have messages defined via
*.proto
files which are "ground truth". It requires additional work to keep Python data classes in sync with*.proto
. Let's a make a "code generator" which translates*.proto
files into*.py
modulesThe text was updated successfully, but these errors were encountered: