电商日报表格数据处理工具 — 读取电商平台导出的数据,按来源写入日报表格
Project description
tmailday
表格数据处理工具 — 读取导出的数据表格,按数据来源写入模板文件对应工作簿。
安装
uv pip install tmailday
# 或直接运行
uvx tmailday --help
用法
CLI
# 校验模板
tmailday <模板文件>
# 处理单个数据文件,原地更新模板
tmailday <模板文件> <数据文件>
# 批量处理多个数据文件
tmailday <模板文件> <数据1> <数据2> ...
# 指定输出路径
tmailday <模板文件> <数据文件> -o <输出文件>
MCP Server
# stdio 模式
tmailday mcp
# HTTP(SSE) 模式
tmailday mcp --transport sse
在 MCP 客户端配置中添加:
{
"mcpServers": {
"tmailday": {
"command": "uvx",
"args": ["tmailday", "mcp"]
}
}
}
MCP Tools
| Tool | 说明 |
|---|---|
process_table(template_path, source_path, output_path?) |
单文件处理 |
process_table_batch(template_path, source_paths, output_path?) |
批量处理 |
支持的数据类型
| 类型 | 格式 | 目标工作簿 | 匹配方式 |
|---|---|---|---|
| 日报 | .xlsx |
B-日报 | 统计日期 |
| 生意参谋 | .xls |
B-商品 | 统计日期 + 商品ID |
| 商品报表 | .zip (内含 .csv) |
B-无界 | 日期 + 场景ID |
模板要求
模板文件为 .xlsx 格式,必须包含以下工作簿:
- 月报、日报、B-日报、B-无界、B-商品
开发
git clone https://git.des8.com/ruichuang/rctmailday.git
cd rctmailday
uv sync
uv run tmailday --help
License
Copyright © 2026 瑞创. All rights reserved.
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
tmailday-0.1.3.tar.gz
(7.6 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tmailday-0.1.3-py3-none-any.whl
(13.7 kB
view details)
File details
Details for the file tmailday-0.1.3.tar.gz.
File metadata
- Download URL: tmailday-0.1.3.tar.gz
- Upload date:
- Size: 7.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34037f3b2143a7ac18f9778f4d322dd51c3ce4bce72b47a637303b08e9e7e6e9
|
|
| MD5 |
7a7b2159e74eb7e44a5f07a20c563c94
|
|
| BLAKE2b-256 |
1f06d612a757130aaa9de15efe83d47d3424525a217e2ebc8ccafd80274b2c40
|
File details
Details for the file tmailday-0.1.3-py3-none-any.whl.
File metadata
- Download URL: tmailday-0.1.3-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e14913a00ea1abb479120094293686152e3ff0aba46df6f97d739d1dce36a04e
|
|
| MD5 |
690a77e2a1c1ebd07b04ded0e5562a58
|
|
| BLAKE2b-256 |
2521e6faa6711f3fe8fb8bcd311358c03a68c6596cca6a303fe2d88d5f88e27e
|