prothon

Generate .proto by .xlsx


Keywords
protobuf, python
License
MIT
Install
pip install prothon==1.0.0

Documentation

prothon

Generate/Compile proto files

Installation

pip install prothon

Quick start

import prothon


def generate_example():
    excel_path = 'YOUR EXCEL PATH'
    proto_name = 'YourProto.proto'

    proto = prothon.generate(excel_path)

    f = open(proto_name, 'w', encoding='utf8')
    f.write(proto)
    f.close()


def compile_example():
    # Your target language
    language = 'csharp'                     
    proto_path = 'YOUR PROTO FILE PATH'
    prothon.compile(proto_path, './', language, './')