name: excel-handler description: 读取、写入和操作Excel文件(.xlsx、.xls)。创建电子表格、读取数据并导出为各种格式。 metadata: short-description: 读写Excel文件 source: repository: https://github.com/python-excel/xlrd license: BSD
Excel 处理工具
描述
读取、写入和操作Excel电子表格,支持公式、样式和数据导出。
触发条件
/excel命令- 用户请求Excel文件操作
- 用户需要读取或创建电子表格
使用方法
# 将Excel读取为JSON
python scripts/excel_handler.py read --input data.xlsx --output data.json
# 从JSON/CSV创建Excel
python scripts/excel_handler.py create --input data.json --output report.xlsx
# 将Excel转换为CSV
python scripts/excel_handler.py convert --input data.xlsx --output data.csv
# 合并多个Excel文件
python scripts/excel_handler.py merge --inputs file1.xlsx,file2.xlsx --output merged.xlsx
标签
excel, spreadsheet, xlsx, csv, data
兼容性
- Codex: ✅
- Claude Code: ✅