Skip to main content

电商日报表格数据处理工具 — 读取电商平台导出的数据,按来源写入日报表格

Project description

tmailday

表格数据处理工具 — 读取导出的数据表格,按数据来源写入模板文件对应工作簿。

安装

uv pip install tmailday
# 或直接运行
uvx tmailday --help
uvx --extra-index-url https://heibai2006:45812c2769a5ac9eb2018cc19cf248c8940ef12f@git.des8.com/api/packages/ruichuang/pypi/simple tmailday

用法

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-商品

常用命令

uvx tmailday   #uvx运行
uvx --extra-index-url https://heibai2006:45812c2769a5ac9eb2018cc19cf248c8940ef12f@git.des8.com/api/packages/ruichuang/pypi/simple tmailday   #uvx运行(从自有服务器加载)
uv sync                    # 安装/同步依赖
uv run tmailday --help        # 查看 CLI 帮助
uv run tmailday <模板> <数据1> <数据2> ...          # 批量处理,原地更新模板
uv run tmailday <模板> <数据> -o <输出>              # 处理后输出到指定文件
uv run tmailday mcp         # 启动 MCP Server (stdio)
uv run tmailday mcp --transport sse  # 启动 MCP HTTP Server transport支持stdio,sse,streamable-http,http
uv add <package>           # 添加依赖

开发

git clone https://git.des8.com/ruichuang/rctmailday.git
cd rctmailday
uv sync
uv run tmailday --help
  • Python >= 3.12
  • 包管理器: uv
  • 框架: FastMCP

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.5.tar.gz (7.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tmailday-0.1.5-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file tmailday-0.1.5.tar.gz.

File metadata

  • Download URL: tmailday-0.1.5.tar.gz
  • Upload date:
  • Size: 7.3 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

Hashes for tmailday-0.1.5.tar.gz
Algorithm Hash digest
SHA256 17a86f63668a7f216339ed7f450c759c3ad487ae4d8523fadc9dc6fad1509258
MD5 d6e9cf789048aa0075aa1fd7790b6a3c
BLAKE2b-256 279dd51630e2eb0a0724551758638477178c3d8dfe141e1fd7ed548d55f91790

See more details on using hashes here.

File details

Details for the file tmailday-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: tmailday-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 15.5 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

Hashes for tmailday-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f09f77e05c4d48939c12209acec6a54b7dfa51bc397a68477c00b88572ee81c5
MD5 e771b26c1e5aaa868941865c5b4a5e99
BLAKE2b-256 d45c10c3a037299923f973f1828348a3cd702068f135c19b6a94e60d0dab3e0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page