Skip to main content

Generate .proto by .xlsx

Project description

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, './')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prothon-1.0.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

prothon-1.0.0-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page