vantransTool
一个基于MCP协议的运输工具服务,提供批量外部派车功能。
功能特点
- 支持批量外部派车
- 支持多组订单号、供应商和指派类型
- 基于MCP协议的高效通信
- 完整的错误处理和日志记录
安装
pip install vantransTool
使用方法
- 启动服务器:
python -m vantransTool.server
- 使用客户端:
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基础URLAPI_TOKEN: API令牌SPACE_ID: 空间IDSUPPLIER_DISPATCH_TABLE: 供应商派车表IDGOODS_DETAIL_TABLE: 货物明细表IDSUPPLIER_TABLE: 供应商表IDSUPPLIER_VIEW: 供应商视图ID
开发
- 克隆仓库:
git clone https://github.com/yourusername/vantransTool.git
cd vantransTool
- 安装开发依赖:
pip install -e ".[dev]"
- 运行测试:
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vantranstool-0.1.1.tar.gz | 7.2 kB | Without provenance | Details for vantranstool-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vantranstool-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for vantranstool-0.1.1-py3-none-any.whl |
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
|
Security for vantranstool 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.