Skip to main content

No project description provided

Project description

excel2x

转换 Config 配置工具 excel2x

Python3excel2x。只需要用工具生成自己项目的配置文件,就可以按照配置文件导Excel表了。现在支持 csvluajson 格式,后面后继续扩展 xml 等格式。

支持生成数据格式 Schema 接口,现在支持 Lua tableTypeScript interface,后面会支持 Java ClassC# Class


安装

pip install excel2x

使用方式

查看帮助

python3 -m excel2x -h
# or
excel2x-cli -h

创建项目配置

python3 -m excel2x --config project_path/config.json --name project_name --create
# or
excel2x-cli --config project_path/config.json --name project_name --create

命令行转换 Excel

python3 -m excel2x --config project_path/config.json
# or
excel2x-cli --config project_path/config.json

Python 脚本中使用

#!/usr/bin/env python3
# -*- coding: utf-8 -*

from excel2x.main import convert_config

if __name__ == "__main__":
    # 项目配置路径
    proj_config_path = "project_path/config.json"
    convert_config(proj_config_path)

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

excel2x-0.0.3.tar.gz (11.5 kB view hashes)

Uploaded Source

Built Distribution

excel2x-0.0.3-py3-none-any.whl (15.3 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