python-betterproto
python-betterproto copied to clipboard
Clean, modern, Python 3.6+ code generator & library for Protobuf 3 and async gRPC
```protobuf service Echo { rpc Echo(EchoRequest) returns (EchoResponse); // rpc EchoStream(EchoRequest) returns (stream EchoStreamResponse); } ``` The generated servicer code generates the code but does not expose the request metadata...
When try to use empty Message (Message without fields) in one_of group, I cannot convert it to dict or bool. Code to reproduce: ```proto syntax = "proto3"; message CommandGetInfo {}...
Hello, I'm new to GRPC (learning 5 days now). My goal is to generate python SDK for [Gitlab Gitaly from published protos](https://gitlab.com/gitlab-org/gitaly/-/tree/master/proto). I started with default `protoc` but quickly found...
[Protobuf does not serialise default values](https://developers.google.com/protocol-buffers/docs/proto3#default), however the betterproto objects could retain them. Consider: ```protobuf enum MyType { A = 0; B = 1; } message MyMessage { string name...
If we use [Semantic Release](https://github.com/semantic-release/semantic-release) to release this repository, we'll get automatically-incremented releases, version tags, and changelogs on each merge to `master`, at the low cost of having to follow...
Merging v2?
Hi all! Hope you are all doing great @nat-n @danielgtaylor @abn I see v2 is still in beta and not merged to master... are we not going to merge this?...
Implements a command line interface for the module abstracting away the use of protoc to under the hood. ## Objectives - An improvement over the current implementation using protoc -...
This PR adds the ParseFromString attribute to the message class for compatibility with the official Google protobuf implementation and method exposure. Closes #323
Given following proto file ``` syntax = "proto3"; package namespaced_enum; message ns { enum Type { NONE = 0; option_one = 1; }} message Msg { ns.Type t = 1;...
Say you have two files `service1.proto` and `service2.proto` with same package assigned: service1.proto: ```protobuf syntax = "proto3"; package service; /* Service1 */ service Service1 {} ``` service2.proto: ```protobuf syntax =...