You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: