Skip to main content

vantransTool

一个基于MCP协议的运输工具服务,提供批量外部派车功能。

功能特点

  • 支持批量外部派车
  • 支持多组订单号、供应商和指派类型
  • 基于MCP协议的高效通信
  • 完整的错误处理和日志记录

安装

pip install vantransTool

使用方法

  1. 启动服务器:
python -m vantransTool.server
  1. 使用客户端:
import asyncio
from vantransTool.client import dispatch_orders

async def main():
    dispatch_groups = [
        {
            "order_numbers": ["5000987906", "5000987907"],
            "supplier_name": "上海乐增",
            "dispatch_type": "提货"
        }
    ]
    result = await dispatch_orders(dispatch_groups)
    print(result)

if __name__ == "__main__":
    asyncio.run(main())

配置

在 config.py 中配置以下参数:

  • BASE_URL: API基础URL
  • API_TOKEN: API令牌
  • SPACE_ID: 空间ID
  • SUPPLIER_DISPATCH_TABLE: 供应商派车表ID
  • GOODS_DETAIL_TABLE: 货物明细表ID
  • SUPPLIER_TABLE: 供应商表ID
  • SUPPLIER_VIEW: 供应商视图ID

开发

  1. 克隆仓库:
git clone https://github.com/yourusername/vantransTool.git
cd vantransTool
  1. 安装开发依赖:
pip install -e ".[dev]"
  1. 运行测试:
python -m pytest

许可证

MIT License

Metadata

Release files for vantranstool 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vantranstool 0.1.1
File Size Uploaded
vantranstool-0.1.1.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vantranstool 0.1.1
File Interpreter ABI Platform
vantranstool-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / vantranstool-0.1.1.tar.gz

Download URL vantranstool-0.1.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cdf2434118ad4fcd08e2f1c9a4143fbc2993c84975b9a7adeec8309b981bc9da
BLAKE2b-256 checksum
How to use checksums
74b491a716da59ec2c7f9af28c93fedb27ce345dc3cce62d95075645888c2498
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.13

Release files / vantranstool-0.1.1-py3-none-any.whl

Download URL vantranstool-0.1.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1f16d6812f16343f67bc7e8c5c7bf603e8552e1ac39a2064bb087467e58cfc9
BLAKE2b-256 checksum
How to use checksums
e40c805e2f82fadefaf9de89c7b7438cdc18b592907fad1c912c257227d37d3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.13

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page