proton
Proton is a excel export configuration file for the tool, you can export to xml, json, lua format, through external expansion can automatically generate the configuration to read the code, simple and flexible easy to use, indeed powerful.
Features
- Writeing in Python,cross-platform, referenced sxl only, full code, just more than 600 lines
- Has a specific rule syntax description excel format information, simple and easy to understand, flexible and powerful, detailed description
- Can export excel format information for external use, can be used to automatically generate read configuration code
Generates an auto-read code
Use the "-c" parameter to generate a json file containing excel format information, each language can be automatically generated to achieve this code to read the tool, the specific format. Has achieved the C # language tools, other language users, can be realized, welcomed the realization of the code links for the needs of people to use.
- CSharpGeneratorForProton generates C # code that reads xml, json, protobuf. You can convert xml, json to protobuf's binary format and generate the corresponding read code (using protobuf-net).
Example
sample directory is a well configured under the direct use of the Windows example. Already contains a python3 environment, directly run __export.bat to complete the export. Need to add a new Excel file, modify the __export.py related array.
Command Line Parameters
Arguments
-p : input excel files, use , or ; or space to separate
-f : out folder
-e : format, json or xml or lua
Options
-s :sign, controls whether the column is exported, defalut all export
-t : suffix, export file suffix
-r : the separator of object field, default is ; you can use it to change
-m : use the count of multiprocesses to export, default is cpu count
-c : a file path, save the excel structure to json,
the external program uses this file to automatically generate the read code
-h : print this help message and exit
-x : don't append 's' on names
Documentation
Wiki https://github.com/yanghuan/proton/wiki/document_en
FAQ https://github.com/yanghuan/proton/wiki/FAQ_en
License
proton
protonShi Yi Ge Jiang excelDao Chu Wei Pei Zhi Wen Jian De Gong Ju ,Ke Yi Dao Chu Wei xml, json, luaGe Shi ,Tong Guo Wai Bu Kuo Zhan Ke Zhi Chi Zi Dong Sheng Cheng Du Qu Pei Zhi De Dai Ma ,Jian Dan Ling Huo Yi Yu Shi Yong ,Que Bu Shi Qiang Da .
Te Dian
- pythonBian Xie Ke Kua Ping Tai Shi Yong ,Jin Yi Lai Di San Fang Ku sxl,Wan Zheng Dai Ma Jin 600Yu Xing .
- You Te Ding De Gui Ze Yu Fa Miao Shu excelDe Ge Shi Xin Xi ,Jian Ji Yi Dong ,Ling Huo Qiang Da ,Xiang Xi Shuo Ming .
- Ke Dao Chu excelGe Shi Xin Xi Gong Wai Bu Cheng Xu Shi Yong ,Ke Yong Lai Zi Dong Sheng Cheng Du Qu Pei Zhi De Dai Ma .
Hou Duan Cheng Xu (Sheng Cheng Zi Dong Du Qu De Dai Ma )
Shi Yong "-c"Can Shu Ke Sheng Cheng Nei Han excelGe Shi Xin Xi De jsonWen Jian ,Ge Ge Yu Yan Ke Ju Ci Shi Xian Zi Dong Sheng Cheng Du Qu Dai Ma De Gong Ju ,Ju Ti Ge Shi Shuo Ming . Yi Jing Shi Xian Liao C#Yu Yan De Gong Ju ,Qi Ta Yu Yan Shi Yong Zhe ,Ke Zi Xing Shi Xian ,Huan Ying Ti Gong Shi Xian De Dai Ma Lian Jie ,Yi Gong Xu Yao De Tong Xue Shi Yong .
- CSharpGeneratorForProton Ke Sheng Cheng Du Qu xml, json, protobufDe C#Dai Ma . Ke Jiang xml, jsonZhuan Huan Wei protobufDe Er Jin Zhi Ge Shi ,Bing Sheng Cheng Dui Ying De Du Qu Dai Ma (Shi Yong protobuf-net).
Shi Li Gong Cheng
sampleMu Lu Xia Shi Yi Ge Pei Zhi Hao Liao De Ke Zai windowsXia Zhi Jie Shi Yong De Shi Li . Yi Jing Bao Han Liao python3Huan Jing ,Zhi Jie Yun Xing __export.batJi Ke Wan Cheng Dao Chu . Xu Yao Tian Jia Xin De ExcelWen Jian ,Xiu Gai __export.pyZhong Xiang Guan Shu Zu ,Jia Ru Ji Ke .
Ming Ling Xing Can Shu
Arguments
-p : input excel files, use , or ; or space to separate
-f : out folder
-e : format, json or xml or lua
Options
-s :sign, controls whether the column is exported, defalut all export
-t : suffix, export file suffix
-r : the separator of object field, default is ; you can use it to change
-m : use the count of multiprocesses to export, default is cpu count
-c : a file path, save the excel structure to json,
the external program uses this file to automatically generate the read code
-h : print this help message and exit
-x : don't append 's' on names
Wen Dang
Ge Shi Shuo Ming https://github.com/yanghuan/proton/wiki/document_zh
FAQ https://github.com/yanghuan/proton/wiki/FAQ_zh
Jiao Liu Tao Lun
- Chang Jian Wen Ti
- You Xiang :sy.yanghuan@gmail.com
- QQQun :715350749