python-betterproto
python-betterproto copied to clipboard
Clean, modern, Python 3.6+ code generator & library for Protobuf 3 and async gRPC
### Summary I'd like to dynamically add non-public methods to my Enums ### What is the feature request for? The core library ### The Problem I'm mixing up betterproto.Enum with...
### Summary When you don't add an explicit `optional`, fields are not serialized properly if they happen to be set to the default value. ### Reproduction Steps ``` message Sample...
## The Problem Currently, the code of betterproto's compiler and betterproto's lib are together, in the same repo, same Python environment, etc. This has several disadvantages: - The users of...
### Summary Regenerating the proto files make the tests fail ### Reproduction Steps Re-generate the files used in the compiler, as documented in the `README`: ``` protoc \ --plugin=protoc-gen-custom=src/betterproto/plugin/main.py \...
### Summary ListValue is not iterable ### What is the feature request for? The core library ### The Problem With official protobuf_pb2, you can do: ```py args = ListValue() args.extend([1,2,3])...
## Summary Added support for the official python grpc library ([grpcio](https://grpc.io)) ## Checklist - [x] If code changes were made then they have been tested. - [x] I have updated...
### Summary When I create a contract with a repeated int64 variable, it serializes into repeated string, which is an unpredictable behaviour ### Reproduction Steps 1. Create a contract: ````protobuf...
### Summary There should be an alternative __bytes__ method that allows to serialize zeroes for proto2 syntax. Currently zeroes enums are skipped as they are "default" values which is incorrect...
23 open PRs at the time of writing, no replies on those, or any updates. Last release almost a year ago
### Summary Unknown value for enum error in from_json ### Reproduction Steps ```protobuf syntax = "proto3"; package hello; enum Test { TestUnset = 0; Test1 = 1; Test2 = 2;...