# python-tools **Repository Path**: mamboTjh/python-tools ## Basic Information - **Project Name**: python-tools - **Description**: pyhton 工具 - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-04-11 - **Last Updated**: 2024-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Simple Python Tool ## 初始化 安装 python3 `pip install -r piplist.txt` ## 示例 ### plist-texture-unpack ```shell python plist-texture-unpack.py -h ``` ``` usage: plist-texture-unpack.py [-h] [-f [FILE ...]] [-d DIR] [-e EXPORT] [--no_copy] options: -h, --help show this help message and exit -f [FILE ...], --file [FILE ...] 图集文件路径 -d DIR, --dir DIR 图集目录 -e EXPORT, --export EXPORT 导出目录,默认为 "plist_texture_unpack_export" --no_copy 导出时不拷贝其他文件 ``` example: ```shell python plist-texture-unpack.py -f file1.plist file2.plist -d dir_path -e export_path --no_copy ``` ### excel-convert.py ```shell python excel-convert.py -h ``` ``` usage: excel-convert.py [-h] [-uc USECONFIG] [-f [FILE ...]] [-d [DIR ...]] [-e EXPORT] [--cover] [--json] [--javascript] [--typescript] [--lua] [--xml] [--yaml] [--minimum] [-sc SAVECONFIG] options: -h, --help show this help message and exit -uc USECONFIG, --useconfig USECONFIG 使用指定的配置文件的参数,指定了配置文件时间忽略其他参数,使用 saveconfig 选项可以保存配置,配置文件必须为 yaml 格式 -f [FILE ...], --file [FILE ...] 表格文件路径 -d [DIR ...], --dir [DIR ...] 表格目录路径 -e EXPORT, --export EXPORT 导出目录,默认为 "excel_convert_export" --cover 导出时覆盖已有文件 --json 导出 json --javascript 导出 javascript --typescript 导出 typescript --lua 导出 lua --xml 导出 xml --yaml 导出 yaml --minimum 最小尺寸导出 -sc SAVECONFIG, --saveconfig SAVECONFIG 指定配置文件保存路径,为空时不保存配置 ``` example: ```shell python excel-convert.py -f example/example_file.xlsx -e test_excel_convert_export --cover --javascript --json --typescript --lua --yaml --xml --minimum -sc example/excel-convert-config.yaml python excel-convert.py -uc example/excel-convert-config.yaml ``` 表格字段参考 example/example_file.xlsx ### char-to-png-with-ttf `python .\char-to-png-with-ttf -h` `python .\char-to-png-with-ttf.py -n .\test\normalChars -o .\test\operatorChars -f .\test\ANTONIO-BOLD.TTF -s 35 -e .\test\export`