python-betterproto
python-betterproto copied to clipboard
Clean, modern, Python 3.6+ code generator & library for Protobuf 3 and async gRPC
I think anyone who has used the library for a while will eventually run into an issue that is made hard to debug by the error messages when serialising and...
I am currently consuming metrics exposed by an OpenTelemetry agent, but when I try to convert the Protobuf metrics to JSON, the "oneOf" occurences are being translated to a dict...
We have noticed that we are loosing part of a protobuf when the only attribute of an element is set to 0. Tested: on the last 2.0.0b4 Example: # Protobuf...
I am currently doing it like this: ``` async with Channel(host, port, ssl=ssl) as channel: stub = stub_function(channel) response = await getattr(stub, method_function)(request_iterator_function(**arguments)) ``` However 1) it disconnects about every...
Every prevailing project has its own name-style, forcing users to rename every name may be not a good idea. To communicate with Java/C++/JavaScript, `mixedCase` (also known as `Lower CamelCase`) is...
python-betterprot is awesome. However, users may forget to implement some service-methods declared in proto file, which cause no error on the server-side. `@abstractmethod` may give user some hints to realize...
Compare line breaks in comments 👇 ```protobuf // `Any` contains an arbitrary serialized protocol buffer message along with a // URL that describes the type of the serialized message. //...
Preview at https://betterproto.readthedocs.io/en/fix-docs It would be nice if @danielgtaylor setup the webhooks to have this auto-build when a commit is pushed to master.
I have two cases where I'd like to convert field types automatically on creation/get/set. I understand that this is a little complicated with dataclasses to begin with, but I was...
According to the docs, deconstruction of a oneof-type is meant to be done in the following way: ```proto syntax = "proto3"; message Test { oneof foo { bool on =...