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

Generate better proto file output #1

Open
b-rowan opened this issue Mar 5, 2024 · 1 comment
Open

Generate better proto file output #1

b-rowan opened this issue Mar 5, 2024 · 1 comment

Comments

@b-rowan
Copy link

b-rowan commented Mar 5, 2024

As of right now, protoc compiles proto files into what is essentially a garbled mess of runtime generated nonsense. This may be applicable to C or other languages, but with pythons use of type hinting in nearly every modern IDE, this generates code that is exceptionally annoying to use in production.

I would highly suggest trying out the betterproto library for this, as it generates actual python code with type hints and proper classes. The library has a 2.0.0b6 version which is quite good, and has been in v2-beta for a few years now, but seems quite stable and is used by a lot of other projects.

Here is the link for it - https://github.com/danielgtaylor/python-betterproto

@luciusmagn
Copy link
Collaborator

Good suggestion, Brett! I'll take a look

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