excel-toolkit/scripts
ivanberry 98ca8a3965 refactor: 将 auth runtime 重构为可复用 Python 包
模式参考 ~/clawd/skills/_shared/auth-runtime (TypeScript):
- 创建 python_auth_runtime/ 作为独立 Python 包
- 其他 skill 可以通过 uv pip install 引用
- 支持三种使用方式:
  1. 本地包安装:uv pip install /path/to/python_auth_runtime
  2. 文件依赖:pyproject.toml 中引用
  3. 复制源码:直接复制 src/python_auth_runtime

包结构:
python_auth_runtime/
├── pyproject.toml          # 包配置
├── README.md               # 使用文档
└── src/python_auth_runtime/
    └── __init__.py         # 核心实现

功能:
- CLIENT_KEY 认证
- 令牌缓存(可配置 TTL)
- 自动刷新过期令牌
- 401/403 自动重试
- 从环境变量加载配置
2026-03-11 20:26:29 +08:00
..
auto_script.py Initial commit: excel-toolkit skill 2026-03-11 12:20:00 +08:00
batch_process.py Initial commit: excel-toolkit skill 2026-03-11 12:20:00 +08:00
filter_data.py Initial commit: excel-toolkit skill 2026-03-11 12:20:00 +08:00
load_env.py feat: 添加 .env 环境变量支持 2026-03-11 20:06:47 +08:00
merge_excel.py Initial commit: excel-toolkit skill 2026-03-11 12:20:00 +08:00
read_excel.py Initial commit: excel-toolkit skill 2026-03-11 12:20:00 +08:00
replace_cells.py Initial commit: excel-toolkit skill 2026-03-11 12:20:00 +08:00
translate_excel.py fix: 修复导入语句,dry-run 测试通过 2026-03-11 19:34:34 +08:00