Metadata-Version: 2.1
Name: excel2x
Version: 0.0.3
Summary: 
Author: Fan
Author-email: fan@example.com
Requires-Python: >=3.7,<3.13
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: colorama (>=0.4.6,<0.5.0)
Requires-Dist: openpyxl (>=3.1.2,<4.0.0)
Requires-Dist: pyinstaller (>=5.13.2,<6.0.0)
Description-Content-Type: text/markdown

# excel2x

## 转换 Config 配置工具 excel2x

`Python3` 库 `excel2x`。只需要用工具生成自己项目的配置文件，就可以按照配置文件导`Excel`表了。现在支持 `csv`、`lua`、`json` 格式，后面后继续扩展 `xml` 等格式。

支持生成数据格式 `Schema` 接口，现在支持 `Lua table`、`TypeScript interface`，后面会支持 `Java Class` 和 `C# Class`。

---

## 安装

```bash
pip install excel2x
```

## 使用方式

### 查看帮助

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

### 创建项目配置

```bash
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

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

### 在 `Python` 脚本中使用

```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)

```

