Are there any plans for a general purpose tool that can parse a proto
file and associated PB binary file, and dump the data in human
readable formatted text? Perhaps such that the dumped text can be run
through a restore tool to recreate the PB binary?
I would use the protocol compiler with flags, but that sounds like it
may be a bit heavy for the target system. Is there any thought of a
smaller, standalone utility?
Hi Kenton,
I was trying to find how to parse text format into pb in Python, and I
noticed it's not implemented... I was just going to start working on
it!
It's good to know it's already being worked out, is there any plans
for release?
I won't be able to work on the python text format parser this weekend
(I'm flying back to Brazil!), so I'm sending what I've done so far, so
that you can already start the code review.
There isn't much specification on the text format, so I'm using
Kenton's C++ implementation + test cases as the spec :-) A lot of code
and test cases are basically a translation from C++ to python, so it
should be easier to review.
The test cases are passing in my mac, I haven't tested on my windows,
but they should work there too.
Thanks,
Helder