python-betterproto
python-betterproto copied to clipboard
Clean, modern, Python 3.6+ code generator & library for Protobuf 3 and async gRPC
I have a theoretical proto file message defined as: ``` message Measurement { double pressure = 1; double temperature = 2; } message MeasurementMap { map measurements = 1; }...
I'm currently facing the issue that a unary_stream connection does not behave as I would expect. (betterproto version b5) ## Client code:  ## Server code:   Opening the...
This is a work in progress to implement support for automatically parsing and serialising arbitrary JSON into the Google well-known types around https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct and https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#value. Changes made to make this...
I currently have a project defining some common message types called `common_proto` and it is installed using git with pip into another project as a package. Inside the package, the...
### Summary module 'google.protobuf' has no attribute 'Any' ### Reproduction Steps I encountered a problem while creating a protobuf through our plugin AttributeError: module 'google.protobuf' has no attribute 'Any' python:3.12.1...
## Summary ## Checklist - [x] If code changes were made then they have been tested. - [x] I have updated the documentation to reflect the changes. - [ ]...
First off, thank you for this tool, I was barely able to work with the Python code that protoc generates by default. I believe that for my usecase, the `grpclib`...
### Summary Title ### Reproduction Steps This protofile works: ```proto3 // proto/test.proto syntax = "proto3"; package p; service Service { rpc Method(Empty) returns (Empty) {} } message Empty {} ```...
### Summary Incompatible type error on generated unary-unary handler code. ### Reproduction Steps Write `reproduce.proto`: ```proto syntax = "proto3"; package reproduce; service X { rpc Y(Z) returns (Z) {} }...
### Summary When calling deepcopy on a proto, the oneOf field state gets overwritten. ### Reproduction Steps 1. Create a simple proto with two one_of fields. 2. set the first...