pip install protod
protod 080102...
protod '08 01 02...'
(with space/tab/newline)protod --b64 CAEIAQ==
protod --file ~/pb.bin
protod
for help
It uses different Renderer
to generate different output:
- For console:
print(protod.dump(proto)) # ConsoleRenderer is used by default
- For html:
html_tag = protod.dump(proto, protod.HtmlRenderer())
# send the html_tag to client browser
$('#div').text(html_tag)