GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hiram3512/ExcelToProtobuf_python

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
Backup
Backup
 
 
Example
Example
 
 
Logs
Logs
 
 
Others
Others
 
 
QTDesigner
QTDesigner
 
 
.gitignore
.gitignore
 
 
.gitkeep
.gitkeep
 
 
README.md
README.md
 
 
README_zh.md
README_zh.md
 
 
common.py
common.py
 
 
config.py
config.py
 
 
dialog_ui.py
dialog_ui.py
 
 
dialog_ui_proxyer.py
dialog_ui_proxyer.py
 
 
excel_parse.py
excel_parse.py
 
 
excel_to_data.py
excel_to_data.py
 
 
generate_intermediate.py
generate_intermediate.py
 
 
language_generate_cpp.py
language_generate_cpp.py
 
 
language_generate_csharp.py
language_generate_csharp.py
 
 
language_generate_java.py
language_generate_java.py
 
 
language_generate_python.py
language_generate_python.py
 
 
log.py
log.py
 
 
main.bat
main.bat
 
 
main.py
main.py
 
 
proto_file.py
proto_file.py
 
 
protoc.exe
protoc.exe
 
 
requirements.txt
requirements.txt
 
 
setup.bat
setup.bat
 
 
setup_dependence.bat
setup_dependence.bat
 
 

Repository files navigation

中文说明

How To Use

  • Double click main.bat
  • Select folder
  • Click export button

First time use and setup:

  • Click setup.bat will automatically call python installer(check on Add Python 3.10 to PATH)
  • Click setup_dependence.bat will automatically install dependency

Config Rule

There are some showcase at Example folder

  • proto description: https://developers.google.com/protocol-buffers/docs/proto3
  • excel description:
    • First row is description, Second row is parameter name, Third and blow is config data
    • Support one Sheet
    • Use,split array

Export Data

  • json (check exported data easily)
  • bin (binary data)
  • pb (description data)

Export Language

  • cpp
  • csharp
  • java
  • python

More:

Convert Rule

standard python data types: https://docs.python.org/3/library/stdtypes.html#

google official convert rule: https://developers.google.com/protocol-buffers/docs/proto3

Convert rule:

  • int32,sint32,sfixed32 to int

  • double,float to float

  • int64,uint32,uint64,sint64,fixed32,fixed64,sfixed64 to int(not long)

  • bool to bool

  • string to str

  • bytes to bytes

why convert int64,uint32.etc to int? because in python 3.x only one default integer value type int:

PEP 237: Essentially, long renamed to int. That is, there is only one built-in integral type, named int; but it behaves mostly like the old long type.https://docs.python.org/3/whatsnew/3.0.html#integers

Log

  • Write into logs folder
  • Search "Error" in log files find export problems

Develop

Python Style Guide

https://google.github.io/styleguide/pyguide.html

Language Extend

Official Support Language

  • Only export common/no library dependence language
  • go, dart .etc language need tools or library to export, can extend those language by self

Other Language Support

  • Lua
    • There are description file .pb, data file .bin, many open source can deserialize to lua table(Most common use)
    • There are .json file with data and format, many open source can transform json to lua file
    • Lua in Unreal Engine/Unity Engine mostly use .pb and .bin

support: [email protected]

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

4 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.