All Projects → yanghuan → Proton

yanghuan / Proton

Licence: other
Export excel to xml, json, lua, etc., and automatically generate the read code.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Proton

Quant4j
火币量化交易 指标组合策略 简单的数值策略 这个项目只是提供一个思路。
Stars: ✭ 134 (-24.29%)
Mutual labels:  simple
Update
清晰灵活简单易用的应用更新库
Stars: ✭ 1,739 (+882.49%)
Mutual labels:  simple
Terminal theme
A simple theme based on hexo 👻👻👻
Stars: ✭ 160 (-9.6%)
Mutual labels:  simple
Flex Block
一个基于Hexo的主题
Stars: ✭ 133 (-24.86%)
Mutual labels:  simple
Smoke
💨 Simple yet powerful file-based mock server with recording abilities
Stars: ✭ 142 (-19.77%)
Mutual labels:  simple
Polyfem
A polyvalent C++ FEM library
Stars: ✭ 147 (-16.95%)
Mutual labels:  simple
Hexo Theme Zhaoo
🐳 A simple theme for Hexo
Stars: ✭ 131 (-25.99%)
Mutual labels:  simple
Sftdyn
Self-hosted dyndns/dynamic DNS server and updater for bind
Stars: ✭ 164 (-7.34%)
Mutual labels:  simple
Valine
A fast, simple & powerful comment system.
Stars: ✭ 1,899 (+972.88%)
Mutual labels:  simple
Jqueryrotate
jQueryRotate - plugin to rotate images by any angle cross-browse with animation support
Stars: ✭ 157 (-11.3%)
Mutual labels:  simple
Beginners C Program Examples
Simple, Short and Sweet beginners friendly C language programs
Stars: ✭ 138 (-22.03%)
Mutual labels:  simple
Easy slam tutorial
首个中文的简单从零开始实现视觉SLAM理论与实践教程,使用Python实现。包括:ORB特征点提取,对极几何,视觉里程计后端优化,实时三维重建地图。A easy SLAM practical tutorial (Python).图像处理、otsu二值化。更多其他教程我的CSDN博客
Stars: ✭ 137 (-22.6%)
Mutual labels:  simple
Minimalrl
Implementations of basic RL algorithms with minimal lines of codes! (pytorch based)
Stars: ✭ 2,051 (+1058.76%)
Mutual labels:  simple
G3d
Simple and easy 3D engine for LÖVE.
Stars: ✭ 135 (-23.73%)
Mutual labels:  simple
Restrequest4delphi
API to consume REST services written in any programming language with support to Lazarus and Delphi
Stars: ✭ 162 (-8.47%)
Mutual labels:  simple
Restore
A predictable & observable state container for React apps
Stars: ✭ 133 (-24.86%)
Mutual labels:  simple
Hugo Theme Console
A minimal, responsive and light theme for Hugo inspired by Linux console.
Stars: ✭ 143 (-19.21%)
Mutual labels:  simple
Simple Hint
CSS-only tooltip packed with a variety of features.
Stars: ✭ 166 (-6.21%)
Mutual labels:  simple
Paris
Logger in Rust for pretty colors and text in the terminal. Aiming for a relatively simple API
Stars: ✭ 162 (-8.47%)
Mutual labels:  simple
Progress Bar.sh
Simple & sexy progress bar for `bash`, give it a duration and it will do the rest.
Stars: ✭ 155 (-12.43%)
Mutual labels:  simple

English Chinese

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 xlrd 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

usage python proton.py [-p filelist] [-f outfolder] [-e format]
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
-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

Documentation

Wiki https://github.com/yanghuan/proton/wiki/document_en
FAQ https://github.com/yanghuan/proton/wiki/FAQ_en

License

Apache 2.0 license.


proton

proton是一个将excel导出为配置文件的工具,可以导出为xml、json、lua格式,通过外部扩展可支持自动生成读取配置的代码,简单灵活易于使用,确不失强大。

特点

  • python编写可跨平台使用,仅依赖第三方库xlrd完整代码仅600余行
  • 有特定的规则语法描述excel的格式信息,简洁易懂,灵活强大,详细说明
  • 可导出excel格式信息供外部程序使用,可用来自动生成读取配置的代码。

后端程序(生成自动读取的代码)

使用“-c”参数可生成内含excel格式信息的json文件,各个语言可据此实现自动生成读取代码的工具,具体格式说明。已经实现了C#语言的工具,其他语言使用者,可自行实现,欢迎提供实现的代码链接,以供需要的同学使用。

  • CSharpGeneratorForProton 可生成读取xml、json、protobuf的C#代码。 可将xml、json转换为protobuf的二进制格式,并生成对应的读取代码(使用protobuf-net)。

实例工程

sample目录下是一个配置好了的可在windows下直接使用的实例。已经包含了python3环境,直接运行__export.bat即可完成导出。需要添加新的Excel文件,修改__export.py中相关数组,加入即可。

命令行参数

usage python proton.py [-p filelist] [-f outfolder] [-e format]
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
-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

文档

格式说明 https://github.com/yanghuan/proton/wiki/document_zh
FAQ https://github.com/yanghuan/proton/wiki/FAQ_zh

交流讨论

许可证

Apache 2.0 license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].