Skip to content

binbingao/py-pb-converters

 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.3%
  • Protocol Buffer 6.7%