openboost-cli 1.0.0__tar.gz → 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/PKG-INFO +26 -26
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/README.md +25 -25
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/pyproject.toml +1 -1
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/__init__.py +1 -1
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/cli/interactive.py +2 -2
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/cli/main.py +2 -2
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli.egg-info/PKG-INFO +26 -26
- openboost_cli-1.0.1/src/openboost_cli.egg-info/entry_points.txt +2 -0
- openboost_cli-1.0.0/src/openboost_cli.egg-info/entry_points.txt +0 -2
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/setup.cfg +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/cli/__init__.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/client.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/coerce_args.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/config.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/mcp_client.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/parse_result.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/registry.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/__init__.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/__init__.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/amz_category_query.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/amz_hot_amz_hot_cat_tree.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/amz_hot_amz_hot_list.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/amz_market_price.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/amz_product_selection.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/amz_review_query.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/amz_sales_query.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/amz_sku_query.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/__init__.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_abstract_image.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_abstract_translated.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_bibliography.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_claim_data.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_claim_translated.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_description.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_description_translated.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_family.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_fulltext_image.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_image_search_multiple.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_image_search_single.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_legal_status.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_pdf.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_query_count.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_query_search.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_query_search_with_agg.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_semantic_search.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/__init__.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tk_expert_sale_show.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_commodity_detail.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_commodity_expert_draw_expert_trend.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_commodity_get_commodity_cat_tree.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_commodity_info_list.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_commodity_sales_trend.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_commodity_statistics_get_category_statistics.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_commodity_statistics_get_expert_statistics.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_commodity_statistics_get_price_statistics.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_commodity_statistics_get_total_statistics.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_commodity_voice_analyze.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_expert_basic_analyze.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_expert_category_analyze.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_expert_detail.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_expert_fans_analyze.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_expert_fans_portrait.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_expert_info_list.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_sale_channel_sale_channel.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_shop_commodity_account_list.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_shop_detail.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_shop_info_list.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_shop_market_info.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_shop_sales_trend.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_video_content.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_video_detail.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_video_info_list.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_video_new_video_summary.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_video_script_diy_query.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_video_voice_read.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_video_voice_summary.json +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas_loader.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli.egg-info/SOURCES.txt +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli.egg-info/dependency_links.txt +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli.egg-info/requires.txt +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli.egg-info/top_level.txt +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/tests/test_cli.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/tests/test_parse_result.py +0 -0
- {openboost_cli-1.0.0 → openboost_cli-1.0.1}/tests/test_schemas_and_args.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openboost-cli
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: Unified CLI and Python client for Openboost TikTok, Patent, and Amazon MCP servers.
|
|
5
5
|
Author: Openboost CLI
|
|
6
6
|
License: MIT
|
|
@@ -23,7 +23,7 @@ Requires-Dist: pytest>=8; extra == "dev"
|
|
|
23
23
|
|
|
24
24
|
统一 Openboost MCP 命令行工具,包含 TikTok、Patent、Amazon 三套 MCP 的交互式菜单、快捷命令、通用调用和 Python 客户端。
|
|
25
25
|
|
|
26
|
-
终端命令为 **`
|
|
26
|
+
终端命令为 **`openboost`**(包名 `openboost-cli`)。
|
|
27
27
|
|
|
28
28
|
完整使用说明见 **[使用文档.md](使用文档.md)**。
|
|
29
29
|
|
|
@@ -52,7 +52,7 @@ pip install -e ".[dev]"
|
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
54
|
pip install --upgrade pip
|
|
55
|
-
pip install "/path/to/openboost-cli/dist/openboost_cli-0.1
|
|
55
|
+
pip install "/path/to/openboost-cli/dist/openboost_cli-1.0.1-py3-none-any.whl"
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
若机器**完全离线**,需事先在同一 Python 版本下准备好依赖的 wheel,或使用带依赖缓存的 `pip download`,再 `pip install --no-index` 指向本地目录;此处与常规 Python 离线安装流程相同。
|
|
@@ -60,7 +60,7 @@ pip install "/path/to/openboost-cli/dist/openboost_cli-0.1.0-py3-none-any.whl"
|
|
|
60
60
|
安装后命令为:
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
|
|
63
|
+
openboost --help
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
### 自行打包安装包
|
|
@@ -79,14 +79,14 @@ python -m build
|
|
|
79
79
|
三套 MCP 共用同一个密钥时:
|
|
80
80
|
|
|
81
81
|
```bash
|
|
82
|
-
|
|
82
|
+
openboost config set --secret-key "你的密钥"
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
也可以只配置某一个 MCP:
|
|
86
86
|
|
|
87
87
|
```bash
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
openboost config set --mcp patent --secret-key "你的密钥"
|
|
89
|
+
openboost config set --mcp amazon --base-url "http://mcp.microdata-inc.com/mcp-servers/proboost-amazon-mcp"
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
环境变量也支持:
|
|
@@ -101,18 +101,18 @@ export OPENBOOST_AMAZON_SECRET_KEY="Amazon 专用密钥"
|
|
|
101
101
|
## 通用命令
|
|
102
102
|
|
|
103
103
|
```bash
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
openboost # 交互式菜单
|
|
105
|
+
openboost list # 列出全部 55 个工具
|
|
106
|
+
openboost docs patent patent_query_search
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
openboost call tiktok tt_video_content \
|
|
109
109
|
--set countryRegion=美国 \
|
|
110
110
|
--set videoId=7587942790298979614
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
openboost call patent patent_query_count \
|
|
113
113
|
--set query_text="TACD: virtual reality"
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
openboost call amazon amz_product_selection \
|
|
116
116
|
--set webSiteId=1 \
|
|
117
117
|
--set pages=1 \
|
|
118
118
|
--set pagesSize=10
|
|
@@ -123,32 +123,32 @@ proboost call amazon amz_product_selection \
|
|
|
123
123
|
TikTok:
|
|
124
124
|
|
|
125
125
|
```bash
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
openboost tiktok commodity category-tree
|
|
127
|
+
openboost tiktok video content 7587942790298979614 --country 美国
|
|
128
|
+
openboost tiktok shop list --data-period last30d --country 美国
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
Patent:
|
|
132
132
|
|
|
133
133
|
```bash
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
openboost patent search count "TACD: virtual reality"
|
|
135
|
+
openboost patent search query "TACD: virtual reality" --limit 10
|
|
136
|
+
openboost patent detail bibliography --patent-number US11205304B2
|
|
137
|
+
openboost patent image-search single "https://example.com/image.jpg" --model 1 --patent-type D
|
|
138
138
|
```
|
|
139
139
|
|
|
140
140
|
Amazon:
|
|
141
141
|
|
|
142
142
|
```bash
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
openboost amazon product selection --site 1 --pages 1 --pages-size 10
|
|
144
|
+
openboost amazon product sku B0EXAMPLE --site 1
|
|
145
|
+
openboost amazon hot cat-tree --site 1 --rank-type "Best Seller"
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
复杂筛选条件可追加 `key=value`:
|
|
149
149
|
|
|
150
150
|
```bash
|
|
151
|
-
|
|
151
|
+
openboost amazon product selection --site 1 minPrice=10 maxPrice=30 sortField=sku_sales_last_30d sortOrder=desc
|
|
152
152
|
```
|
|
153
153
|
|
|
154
154
|
## Python 客户端
|
|
@@ -166,6 +166,6 @@ items = pb.amazon.amz_product_selection(webSiteId="1", pages=1, pagesSize=10)
|
|
|
166
166
|
|
|
167
167
|
```bash
|
|
168
168
|
python -m pytest
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
openboost --help
|
|
170
|
+
openboost list
|
|
171
171
|
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
统一 Openboost MCP 命令行工具,包含 TikTok、Patent、Amazon 三套 MCP 的交互式菜单、快捷命令、通用调用和 Python 客户端。
|
|
4
4
|
|
|
5
|
-
终端命令为 **`
|
|
5
|
+
终端命令为 **`openboost`**(包名 `openboost-cli`)。
|
|
6
6
|
|
|
7
7
|
完整使用说明见 **[使用文档.md](使用文档.md)**。
|
|
8
8
|
|
|
@@ -31,7 +31,7 @@ pip install -e ".[dev]"
|
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
pip install --upgrade pip
|
|
34
|
-
pip install "/path/to/openboost-cli/dist/openboost_cli-0.1
|
|
34
|
+
pip install "/path/to/openboost-cli/dist/openboost_cli-1.0.1-py3-none-any.whl"
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
若机器**完全离线**,需事先在同一 Python 版本下准备好依赖的 wheel,或使用带依赖缓存的 `pip download`,再 `pip install --no-index` 指向本地目录;此处与常规 Python 离线安装流程相同。
|
|
@@ -39,7 +39,7 @@ pip install "/path/to/openboost-cli/dist/openboost_cli-0.1.0-py3-none-any.whl"
|
|
|
39
39
|
安装后命令为:
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
|
|
42
|
+
openboost --help
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
### 自行打包安装包
|
|
@@ -58,14 +58,14 @@ python -m build
|
|
|
58
58
|
三套 MCP 共用同一个密钥时:
|
|
59
59
|
|
|
60
60
|
```bash
|
|
61
|
-
|
|
61
|
+
openboost config set --secret-key "你的密钥"
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
也可以只配置某一个 MCP:
|
|
65
65
|
|
|
66
66
|
```bash
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
openboost config set --mcp patent --secret-key "你的密钥"
|
|
68
|
+
openboost config set --mcp amazon --base-url "http://mcp.microdata-inc.com/mcp-servers/proboost-amazon-mcp"
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
环境变量也支持:
|
|
@@ -80,18 +80,18 @@ export OPENBOOST_AMAZON_SECRET_KEY="Amazon 专用密钥"
|
|
|
80
80
|
## 通用命令
|
|
81
81
|
|
|
82
82
|
```bash
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
openboost # 交互式菜单
|
|
84
|
+
openboost list # 列出全部 55 个工具
|
|
85
|
+
openboost docs patent patent_query_search
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
openboost call tiktok tt_video_content \
|
|
88
88
|
--set countryRegion=美国 \
|
|
89
89
|
--set videoId=7587942790298979614
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
openboost call patent patent_query_count \
|
|
92
92
|
--set query_text="TACD: virtual reality"
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
openboost call amazon amz_product_selection \
|
|
95
95
|
--set webSiteId=1 \
|
|
96
96
|
--set pages=1 \
|
|
97
97
|
--set pagesSize=10
|
|
@@ -102,32 +102,32 @@ proboost call amazon amz_product_selection \
|
|
|
102
102
|
TikTok:
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
openboost tiktok commodity category-tree
|
|
106
|
+
openboost tiktok video content 7587942790298979614 --country 美国
|
|
107
|
+
openboost tiktok shop list --data-period last30d --country 美国
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
Patent:
|
|
111
111
|
|
|
112
112
|
```bash
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
openboost patent search count "TACD: virtual reality"
|
|
114
|
+
openboost patent search query "TACD: virtual reality" --limit 10
|
|
115
|
+
openboost patent detail bibliography --patent-number US11205304B2
|
|
116
|
+
openboost patent image-search single "https://example.com/image.jpg" --model 1 --patent-type D
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
Amazon:
|
|
120
120
|
|
|
121
121
|
```bash
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
openboost amazon product selection --site 1 --pages 1 --pages-size 10
|
|
123
|
+
openboost amazon product sku B0EXAMPLE --site 1
|
|
124
|
+
openboost amazon hot cat-tree --site 1 --rank-type "Best Seller"
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
复杂筛选条件可追加 `key=value`:
|
|
128
128
|
|
|
129
129
|
```bash
|
|
130
|
-
|
|
130
|
+
openboost amazon product selection --site 1 minPrice=10 maxPrice=30 sortField=sku_sales_last_30d sortOrder=desc
|
|
131
131
|
```
|
|
132
132
|
|
|
133
133
|
## Python 客户端
|
|
@@ -145,6 +145,6 @@ items = pb.amazon.amz_product_selection(webSiteId="1", pages=1, pagesSize=10)
|
|
|
145
145
|
|
|
146
146
|
```bash
|
|
147
147
|
python -m pytest
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
openboost --help
|
|
149
|
+
openboost list
|
|
150
150
|
```
|
|
@@ -26,7 +26,7 @@ def run_interactive(
|
|
|
26
26
|
) -> None:
|
|
27
27
|
console.print(Panel(
|
|
28
28
|
"[bold cyan]Openboost CLI[/bold cyan]\n统一调用 TikTok / Patent / Amazon MCP",
|
|
29
|
-
title="
|
|
29
|
+
title="openboost",
|
|
30
30
|
border_style="cyan",
|
|
31
31
|
))
|
|
32
32
|
|
|
@@ -85,7 +85,7 @@ def run_interactive(
|
|
|
85
85
|
|
|
86
86
|
secret, resolved_base = effective_secret_and_base(mcp, secret_key=secret_key, base_url=base_url)
|
|
87
87
|
if not secret:
|
|
88
|
-
console.print("[red]缺少 secret-key。请运行
|
|
88
|
+
console.print("[red]缺少 secret-key。请运行 openboost config set --secret-key ...[/red]")
|
|
89
89
|
raise SystemExit(1)
|
|
90
90
|
|
|
91
91
|
try:
|
|
@@ -33,7 +33,7 @@ if sys.stdout and hasattr(sys.stdout, "reconfigure"):
|
|
|
33
33
|
console = Console()
|
|
34
34
|
|
|
35
35
|
app = typer.Typer(
|
|
36
|
-
name="
|
|
36
|
+
name="openboost",
|
|
37
37
|
help="Openboost CLI — 统一调用 TikTok / Patent / Amazon MCP",
|
|
38
38
|
no_args_is_help=False,
|
|
39
39
|
add_completion=False,
|
|
@@ -128,7 +128,7 @@ def _run_tool(mcp: str, tool_name: str, arguments: dict[str, Any], *, verbatim:
|
|
|
128
128
|
)
|
|
129
129
|
if not secret:
|
|
130
130
|
console.print(
|
|
131
|
-
f"[red]缺少 {MCP_LABELS[mcp]} secret-key。[/red]请设置 OPENBOOST_SECRET_KEY 或运行
|
|
131
|
+
f"[red]缺少 {MCP_LABELS[mcp]} secret-key。[/red]请设置 OPENBOOST_SECRET_KEY 或运行 openboost config set --secret-key ..."
|
|
132
132
|
)
|
|
133
133
|
raise typer.Exit(1)
|
|
134
134
|
try:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openboost-cli
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: Unified CLI and Python client for Openboost TikTok, Patent, and Amazon MCP servers.
|
|
5
5
|
Author: Openboost CLI
|
|
6
6
|
License: MIT
|
|
@@ -23,7 +23,7 @@ Requires-Dist: pytest>=8; extra == "dev"
|
|
|
23
23
|
|
|
24
24
|
统一 Openboost MCP 命令行工具,包含 TikTok、Patent、Amazon 三套 MCP 的交互式菜单、快捷命令、通用调用和 Python 客户端。
|
|
25
25
|
|
|
26
|
-
终端命令为 **`
|
|
26
|
+
终端命令为 **`openboost`**(包名 `openboost-cli`)。
|
|
27
27
|
|
|
28
28
|
完整使用说明见 **[使用文档.md](使用文档.md)**。
|
|
29
29
|
|
|
@@ -52,7 +52,7 @@ pip install -e ".[dev]"
|
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
54
|
pip install --upgrade pip
|
|
55
|
-
pip install "/path/to/openboost-cli/dist/openboost_cli-0.1
|
|
55
|
+
pip install "/path/to/openboost-cli/dist/openboost_cli-1.0.1-py3-none-any.whl"
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
若机器**完全离线**,需事先在同一 Python 版本下准备好依赖的 wheel,或使用带依赖缓存的 `pip download`,再 `pip install --no-index` 指向本地目录;此处与常规 Python 离线安装流程相同。
|
|
@@ -60,7 +60,7 @@ pip install "/path/to/openboost-cli/dist/openboost_cli-0.1.0-py3-none-any.whl"
|
|
|
60
60
|
安装后命令为:
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
|
|
63
|
+
openboost --help
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
### 自行打包安装包
|
|
@@ -79,14 +79,14 @@ python -m build
|
|
|
79
79
|
三套 MCP 共用同一个密钥时:
|
|
80
80
|
|
|
81
81
|
```bash
|
|
82
|
-
|
|
82
|
+
openboost config set --secret-key "你的密钥"
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
也可以只配置某一个 MCP:
|
|
86
86
|
|
|
87
87
|
```bash
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
openboost config set --mcp patent --secret-key "你的密钥"
|
|
89
|
+
openboost config set --mcp amazon --base-url "http://mcp.microdata-inc.com/mcp-servers/proboost-amazon-mcp"
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
环境变量也支持:
|
|
@@ -101,18 +101,18 @@ export OPENBOOST_AMAZON_SECRET_KEY="Amazon 专用密钥"
|
|
|
101
101
|
## 通用命令
|
|
102
102
|
|
|
103
103
|
```bash
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
openboost # 交互式菜单
|
|
105
|
+
openboost list # 列出全部 55 个工具
|
|
106
|
+
openboost docs patent patent_query_search
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
openboost call tiktok tt_video_content \
|
|
109
109
|
--set countryRegion=美国 \
|
|
110
110
|
--set videoId=7587942790298979614
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
openboost call patent patent_query_count \
|
|
113
113
|
--set query_text="TACD: virtual reality"
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
openboost call amazon amz_product_selection \
|
|
116
116
|
--set webSiteId=1 \
|
|
117
117
|
--set pages=1 \
|
|
118
118
|
--set pagesSize=10
|
|
@@ -123,32 +123,32 @@ proboost call amazon amz_product_selection \
|
|
|
123
123
|
TikTok:
|
|
124
124
|
|
|
125
125
|
```bash
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
openboost tiktok commodity category-tree
|
|
127
|
+
openboost tiktok video content 7587942790298979614 --country 美国
|
|
128
|
+
openboost tiktok shop list --data-period last30d --country 美国
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
Patent:
|
|
132
132
|
|
|
133
133
|
```bash
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
openboost patent search count "TACD: virtual reality"
|
|
135
|
+
openboost patent search query "TACD: virtual reality" --limit 10
|
|
136
|
+
openboost patent detail bibliography --patent-number US11205304B2
|
|
137
|
+
openboost patent image-search single "https://example.com/image.jpg" --model 1 --patent-type D
|
|
138
138
|
```
|
|
139
139
|
|
|
140
140
|
Amazon:
|
|
141
141
|
|
|
142
142
|
```bash
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
openboost amazon product selection --site 1 --pages 1 --pages-size 10
|
|
144
|
+
openboost amazon product sku B0EXAMPLE --site 1
|
|
145
|
+
openboost amazon hot cat-tree --site 1 --rank-type "Best Seller"
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
复杂筛选条件可追加 `key=value`:
|
|
149
149
|
|
|
150
150
|
```bash
|
|
151
|
-
|
|
151
|
+
openboost amazon product selection --site 1 minPrice=10 maxPrice=30 sortField=sku_sales_last_30d sortOrder=desc
|
|
152
152
|
```
|
|
153
153
|
|
|
154
154
|
## Python 客户端
|
|
@@ -166,6 +166,6 @@ items = pb.amazon.amz_product_selection(webSiteId="1", pages=1, pagesSize=10)
|
|
|
166
166
|
|
|
167
167
|
```bash
|
|
168
168
|
python -m pytest
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
openboost --help
|
|
170
|
+
openboost list
|
|
171
171
|
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/amz_category_query.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/amz_market_price.json
RENAMED
|
File without changes
|
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/amz_review_query.json
RENAMED
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/amz_sales_query.json
RENAMED
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/amazon/amz_sku_query.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_claim_data.json
RENAMED
|
File without changes
|
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_description.json
RENAMED
|
File without changes
|
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_family.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_pdf.json
RENAMED
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/patent/patent_query_count.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_expert_detail.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_shop_detail.json
RENAMED
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_shop_info_list.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_video_content.json
RENAMED
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_video_detail.json
RENAMED
|
File without changes
|
{openboost_cli-1.0.0 → openboost_cli-1.0.1}/src/openboost_cli/schemas/tiktok/tt_video_info_list.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|