Thanks a lot for the quick and comprehensive response, I'll look into the 
suggested methods! :)

בתאריך יום שני, 23 במרץ 2020 בשעה 16:41:52 UTC+2, מאת Nadav Samet:
>
> Hi Shaham,
>
> If you already have Python generated code for your messages, you can 
> import it and look for the descriptors to traverse the structure (I think 
> this is message.DESCRIPTOR). If you don't have generated code, you can look 
> into "protoc --descriptor_set_out" to create a descriptor given a proto 
> file. You can load this descriptor in runtime and perform the verification 
> you want to do.
>
> Alternatively, you can also look into https://github.com/uber/prototool - 
> the README suggest there's a command "prototool break check" which may do 
> similar things to what you want. 
>
> Hope this helps,
> Nadav
>
> ‪On Mon, Mar 23, 2020 at 7:32 AM ‫שחם פרידנברג‬‎ <[email protected] 
> <javascript:>> wrote:‬
>
>> hey all,
>>
>> I wish to write a python tool which verifies comparability between two 
>> different versions of my proto files.
>>
>> For that, I want to first parse proto files and represent them in some 
>> sorts of python classes. 
>>
>> Any idea of a python library that does that? I wrote some simple parser 
>> and then realized that there might be infinite nested messages..
>>
>> Thanks in advance for any help and tip :)
>> Shaham
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Protocol Buffers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/protobuf/42282c8a-373a-4625-a73e-f4a5d9dc67d9%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/protobuf/42282c8a-373a-4625-a73e-f4a5d9dc67d9%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> -Nadav
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/25d93c59-c573-4628-bdba-0efb9c29f162%40googlegroups.com.

Reply via email to