Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 521 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 521 Bytes

py-pb-converters

py-pb-converters is a set of python convinience scripts for conversion between Google's Protocol Buffers and JSoN.


Example of usage:

from addressbook_pb2 import AddressBook import pbjson

Convert python dict to Protobuf

adr_book = pbjson.dict2pb(AddressBook, adr_book_json)

Convert Protobuf to JSoN

new_json = pbjson.pb2json(adr_book)