python-betterproto icon indicating copy to clipboard operation
python-betterproto copied to clipboard

Add text format representation

Open Arman17Babaei opened this issue 4 years ago • 1 comments

Google protobuf provides a library to parse and create text representations of messages, google.protobuf.text_format to be specific. I think it would be a good idea to add such module to this project for compatibility.

The text representation this module creates, basically looks a lot like json. Some differences are:

  • Field names are not quoted
  • Repeated objects are actually repeated in the structure, and are not an array

Arman17Babaei avatar Jun 23 '21 09:06 Arman17Babaei

Hi @Arman17Babaei , did you solved this problem yet? I'm having the same use case and wanna load *.txtpb using betterproto objects.

zhuoqun-chen avatar Apr 24 '25 19:04 zhuoqun-chen