openboost-cli 0.1.0__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-0.1.0/LICENSE +21 -0
- openboost_cli-0.1.0/PKG-INFO +153 -0
- openboost_cli-0.1.0/README.md +122 -0
- openboost_cli-0.1.0/pyproject.toml +64 -0
- openboost_cli-0.1.0/setup.cfg +4 -0
- openboost_cli-0.1.0/src/openboost_cli.egg-info/PKG-INFO +153 -0
- openboost_cli-0.1.0/src/openboost_cli.egg-info/SOURCES.txt +82 -0
- openboost_cli-0.1.0/src/openboost_cli.egg-info/dependency_links.txt +1 -0
- openboost_cli-0.1.0/src/openboost_cli.egg-info/entry_points.txt +2 -0
- openboost_cli-0.1.0/src/openboost_cli.egg-info/requires.txt +9 -0
- openboost_cli-0.1.0/src/openboost_cli.egg-info/top_level.txt +1 -0
- openboost_cli-0.1.0/src/proboost_cli/__init__.py +21 -0
- openboost_cli-0.1.0/src/proboost_cli/cli/__init__.py +1 -0
- openboost_cli-0.1.0/src/proboost_cli/cli/interactive.py +107 -0
- openboost_cli-0.1.0/src/proboost_cli/cli/main.py +566 -0
- openboost_cli-0.1.0/src/proboost_cli/client.py +58 -0
- openboost_cli-0.1.0/src/proboost_cli/coerce_args.py +62 -0
- openboost_cli-0.1.0/src/proboost_cli/config.py +109 -0
- openboost_cli-0.1.0/src/proboost_cli/mcp_client.py +113 -0
- openboost_cli-0.1.0/src/proboost_cli/parse_result.py +53 -0
- openboost_cli-0.1.0/src/proboost_cli/registry.py +112 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/__init__.py +1 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/amazon/__init__.py +1 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/amazon/amz_category_query.json +20 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/amazon/amz_hot_amz_hot_cat_tree.json +25 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/amazon/amz_hot_amz_hot_list.json +33 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/amazon/amz_market_price.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/amazon/amz_product_selection.json +140 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/amazon/amz_review_query.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/amazon/amz_sales_query.json +20 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/amazon/amz_sku_query.json +20 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/__init__.py +1 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_abstract_image.json +17 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_abstract_translated.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_bibliography.json +17 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_claim_data.json +21 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_claim_translated.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_description.json +21 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_description_translated.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_family.json +17 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_fulltext_image.json +29 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_image_search_multiple.json +117 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_image_search_single.json +114 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_legal_status.json +17 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_pdf.json +21 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_query_count.json +36 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_query_search.json +40 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_query_search_with_agg.json +55 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/patent/patent_semantic_search.json +48 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/__init__.py +1 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tk_expert_sale_show.json +20 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_commodity_detail.json +21 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_commodity_expert_draw_expert_trend.json +20 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_commodity_get_commodity_cat_tree.json +8 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_commodity_info_list.json +180 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_commodity_sales_trend.json +33 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_commodity_statistics_get_category_statistics.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_commodity_statistics_get_expert_statistics.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_commodity_statistics_get_price_statistics.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_commodity_statistics_get_total_statistics.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_commodity_voice_analyze.json +36 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_expert_basic_analyze.json +24 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_expert_category_analyze.json +29 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_expert_detail.json +20 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_expert_fans_analyze.json +20 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_expert_fans_portrait.json +20 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_expert_info_list.json +180 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_sale_channel_sale_channel.json +26 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_shop_commodity_account_list.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_shop_detail.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_shop_info_list.json +108 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_shop_market_info.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_shop_sales_trend.json +33 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_video_content.json +20 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_video_detail.json +20 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_video_info_list.json +152 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_video_new_video_summary.json +20 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_video_script_diy_query.json +20 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_video_voice_read.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas/tiktok/tt_video_voice_summary.json +28 -0
- openboost_cli-0.1.0/src/proboost_cli/schemas_loader.py +49 -0
- openboost_cli-0.1.0/tests/test_cli.py +28 -0
- openboost_cli-0.1.0/tests/test_parse_result.py +37 -0
- openboost_cli-0.1.0/tests/test_schemas_and_args.py +41 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Proboost CLI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: openboost-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Unified CLI and Python client for Proboost TikTok, Patent, and Amazon MCP servers.
|
|
5
|
+
Author: Proboost CLI
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Keywords: mcp,cli,openboost,proboost,tiktok,patent,amazon
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
|
+
Classifier: Environment :: Console
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
18
|
+
Classifier: Topic :: Utilities
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: httpx>=0.27
|
|
23
|
+
Requires-Dist: mcp>=1.24
|
|
24
|
+
Requires-Dist: rich>=13.0
|
|
25
|
+
Requires-Dist: typer>=0.12
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
28
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
29
|
+
Requires-Dist: twine>=6.0; extra == "dev"
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# openboost-cli
|
|
33
|
+
|
|
34
|
+
统一 Proboost MCP 命令行工具,包含 TikTok、Patent、Amazon 三套 MCP 的交互式菜单、快捷命令、通用调用和 Python 客户端。
|
|
35
|
+
|
|
36
|
+
## 安装
|
|
37
|
+
|
|
38
|
+
从 PyPI 安装:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install openboost-cli
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
开发安装:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
python3.12 -m venv .venv
|
|
48
|
+
source .venv/bin/activate
|
|
49
|
+
pip install --upgrade pip
|
|
50
|
+
pip install -e ".[dev]"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
安装后命令为:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
proboost --help
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## 配置密钥
|
|
60
|
+
|
|
61
|
+
三套 MCP 共用同一个密钥时:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
proboost config set --secret-key "你的密钥"
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
也可以只配置某一个 MCP:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
proboost config set --mcp patent --secret-key "你的密钥"
|
|
71
|
+
proboost config set --mcp amazon --base-url "http://mcp.microdata-inc.com/mcp-servers/proboost-amazon-mcp"
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
环境变量也支持:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
export PROBOOST_SECRET_KEY="通用密钥"
|
|
78
|
+
export PROBOOST_TIKTOK_SECRET_KEY="TikTok 专用密钥"
|
|
79
|
+
export PROBOOST_PATENT_SECRET_KEY="Patent 专用密钥"
|
|
80
|
+
export PROBOOST_AMAZON_SECRET_KEY="Amazon 专用密钥"
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## 通用命令
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
proboost # 交互式菜单
|
|
87
|
+
proboost list # 列出全部 55 个工具
|
|
88
|
+
proboost docs patent patent_query_search
|
|
89
|
+
|
|
90
|
+
proboost call tiktok tt_video_content \
|
|
91
|
+
--set countryRegion=美国 \
|
|
92
|
+
--set videoId=7587942790298979614
|
|
93
|
+
|
|
94
|
+
proboost call patent patent_query_count \
|
|
95
|
+
--set query_text="TACD: virtual reality"
|
|
96
|
+
|
|
97
|
+
proboost call amazon amz_product_selection \
|
|
98
|
+
--set webSiteId=1 \
|
|
99
|
+
--set pages=1 \
|
|
100
|
+
--set pagesSize=10
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## 快捷命令示例
|
|
104
|
+
|
|
105
|
+
TikTok:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
proboost tiktok commodity category-tree
|
|
109
|
+
proboost tiktok video content 7587942790298979614 --country 美国
|
|
110
|
+
proboost tiktok shop list --data-period last30d --country 美国
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Patent:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
proboost patent search count "TACD: virtual reality"
|
|
117
|
+
proboost patent search query "TACD: virtual reality" --limit 10
|
|
118
|
+
proboost patent detail bibliography --patent-number US11205304B2
|
|
119
|
+
proboost patent image-search single "https://example.com/image.jpg" --model 1 --patent-type D
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Amazon:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
proboost amazon product selection --site 1 --pages 1 --pages-size 10
|
|
126
|
+
proboost amazon product sku B0EXAMPLE --site 1
|
|
127
|
+
proboost amazon hot cat-tree --site 1 --rank-type "Best Seller"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
复杂筛选条件可追加 `key=value`:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
proboost amazon product selection --site 1 minPrice=10 maxPrice=30 sortField=sku_sales_last_30d sortOrder=desc
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Python 客户端
|
|
137
|
+
|
|
138
|
+
```python
|
|
139
|
+
from proboost_cli import Proboost
|
|
140
|
+
|
|
141
|
+
pb = Proboost()
|
|
142
|
+
content = pb.tiktok.tt_video_content(countryRegion="美国", videoId="7587942790298979614")
|
|
143
|
+
count = pb.patent.patent_query_count(query_text="TACD: virtual reality")
|
|
144
|
+
items = pb.amazon.amz_product_selection(webSiteId="1", pages=1, pagesSize=10)
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## 测试
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
python -m pytest
|
|
151
|
+
proboost --help
|
|
152
|
+
proboost list
|
|
153
|
+
```
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# openboost-cli
|
|
2
|
+
|
|
3
|
+
统一 Proboost MCP 命令行工具,包含 TikTok、Patent、Amazon 三套 MCP 的交互式菜单、快捷命令、通用调用和 Python 客户端。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
从 PyPI 安装:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install openboost-cli
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
开发安装:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
python3.12 -m venv .venv
|
|
17
|
+
source .venv/bin/activate
|
|
18
|
+
pip install --upgrade pip
|
|
19
|
+
pip install -e ".[dev]"
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
安装后命令为:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
proboost --help
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 配置密钥
|
|
29
|
+
|
|
30
|
+
三套 MCP 共用同一个密钥时:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
proboost config set --secret-key "你的密钥"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
也可以只配置某一个 MCP:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
proboost config set --mcp patent --secret-key "你的密钥"
|
|
40
|
+
proboost config set --mcp amazon --base-url "http://mcp.microdata-inc.com/mcp-servers/proboost-amazon-mcp"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
环境变量也支持:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
export PROBOOST_SECRET_KEY="通用密钥"
|
|
47
|
+
export PROBOOST_TIKTOK_SECRET_KEY="TikTok 专用密钥"
|
|
48
|
+
export PROBOOST_PATENT_SECRET_KEY="Patent 专用密钥"
|
|
49
|
+
export PROBOOST_AMAZON_SECRET_KEY="Amazon 专用密钥"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 通用命令
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
proboost # 交互式菜单
|
|
56
|
+
proboost list # 列出全部 55 个工具
|
|
57
|
+
proboost docs patent patent_query_search
|
|
58
|
+
|
|
59
|
+
proboost call tiktok tt_video_content \
|
|
60
|
+
--set countryRegion=美国 \
|
|
61
|
+
--set videoId=7587942790298979614
|
|
62
|
+
|
|
63
|
+
proboost call patent patent_query_count \
|
|
64
|
+
--set query_text="TACD: virtual reality"
|
|
65
|
+
|
|
66
|
+
proboost call amazon amz_product_selection \
|
|
67
|
+
--set webSiteId=1 \
|
|
68
|
+
--set pages=1 \
|
|
69
|
+
--set pagesSize=10
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## 快捷命令示例
|
|
73
|
+
|
|
74
|
+
TikTok:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
proboost tiktok commodity category-tree
|
|
78
|
+
proboost tiktok video content 7587942790298979614 --country 美国
|
|
79
|
+
proboost tiktok shop list --data-period last30d --country 美国
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Patent:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
proboost patent search count "TACD: virtual reality"
|
|
86
|
+
proboost patent search query "TACD: virtual reality" --limit 10
|
|
87
|
+
proboost patent detail bibliography --patent-number US11205304B2
|
|
88
|
+
proboost patent image-search single "https://example.com/image.jpg" --model 1 --patent-type D
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Amazon:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
proboost amazon product selection --site 1 --pages 1 --pages-size 10
|
|
95
|
+
proboost amazon product sku B0EXAMPLE --site 1
|
|
96
|
+
proboost amazon hot cat-tree --site 1 --rank-type "Best Seller"
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
复杂筛选条件可追加 `key=value`:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
proboost amazon product selection --site 1 minPrice=10 maxPrice=30 sortField=sku_sales_last_30d sortOrder=desc
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Python 客户端
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
from proboost_cli import Proboost
|
|
109
|
+
|
|
110
|
+
pb = Proboost()
|
|
111
|
+
content = pb.tiktok.tt_video_content(countryRegion="美国", videoId="7587942790298979614")
|
|
112
|
+
count = pb.patent.patent_query_count(query_text="TACD: virtual reality")
|
|
113
|
+
items = pb.amazon.amz_product_selection(webSiteId="1", pages=1, pagesSize=10)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## 测试
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
python -m pytest
|
|
120
|
+
proboost --help
|
|
121
|
+
proboost list
|
|
122
|
+
```
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "openboost-cli"
|
|
7
|
+
description = "Unified CLI and Python client for Proboost TikTok, Patent, and Amazon MCP servers."
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
requires-python = ">=3.10"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
authors = [{ name = "Proboost CLI" }]
|
|
13
|
+
keywords = ["mcp", "cli", "openboost", "proboost", "tiktok", "patent", "amazon"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 4 - Beta",
|
|
16
|
+
"Environment :: Console",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"Operating System :: OS Independent",
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
25
|
+
"Topic :: Utilities",
|
|
26
|
+
]
|
|
27
|
+
dynamic = ["version"]
|
|
28
|
+
dependencies = [
|
|
29
|
+
"httpx>=0.27",
|
|
30
|
+
"mcp>=1.24",
|
|
31
|
+
"rich>=13.0",
|
|
32
|
+
"typer>=0.12",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.optional-dependencies]
|
|
36
|
+
dev = ["pytest>=8", "build>=1.2", "twine>=6.0"]
|
|
37
|
+
|
|
38
|
+
[project.scripts]
|
|
39
|
+
proboost = "proboost_cli.cli.main:main"
|
|
40
|
+
|
|
41
|
+
[tool.setuptools]
|
|
42
|
+
package-dir = { "" = "src" }
|
|
43
|
+
|
|
44
|
+
[tool.setuptools.packages.find]
|
|
45
|
+
where = ["src"]
|
|
46
|
+
|
|
47
|
+
[tool.setuptools.package-data]
|
|
48
|
+
proboost_cli = [
|
|
49
|
+
"schemas/tiktok/*.json",
|
|
50
|
+
"schemas/patent/*.json",
|
|
51
|
+
"schemas/amazon/*.json",
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
[tool.setuptools.dynamic]
|
|
55
|
+
version = { attr = "proboost_cli.__version__" }
|
|
56
|
+
|
|
57
|
+
[tool.pytest.ini_options]
|
|
58
|
+
testpaths = ["tests"]
|
|
59
|
+
|
|
60
|
+
[[tool.uv.index]]
|
|
61
|
+
name = "testpypi"
|
|
62
|
+
url = "https://test.pypi.org/simple/"
|
|
63
|
+
publish-url = "https://test.pypi.org/legacy/"
|
|
64
|
+
explicit = true
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: openboost-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Unified CLI and Python client for Proboost TikTok, Patent, and Amazon MCP servers.
|
|
5
|
+
Author: Proboost CLI
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Keywords: mcp,cli,openboost,proboost,tiktok,patent,amazon
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
|
+
Classifier: Environment :: Console
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
18
|
+
Classifier: Topic :: Utilities
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: httpx>=0.27
|
|
23
|
+
Requires-Dist: mcp>=1.24
|
|
24
|
+
Requires-Dist: rich>=13.0
|
|
25
|
+
Requires-Dist: typer>=0.12
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
28
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
29
|
+
Requires-Dist: twine>=6.0; extra == "dev"
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# openboost-cli
|
|
33
|
+
|
|
34
|
+
统一 Proboost MCP 命令行工具,包含 TikTok、Patent、Amazon 三套 MCP 的交互式菜单、快捷命令、通用调用和 Python 客户端。
|
|
35
|
+
|
|
36
|
+
## 安装
|
|
37
|
+
|
|
38
|
+
从 PyPI 安装:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install openboost-cli
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
开发安装:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
python3.12 -m venv .venv
|
|
48
|
+
source .venv/bin/activate
|
|
49
|
+
pip install --upgrade pip
|
|
50
|
+
pip install -e ".[dev]"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
安装后命令为:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
proboost --help
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## 配置密钥
|
|
60
|
+
|
|
61
|
+
三套 MCP 共用同一个密钥时:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
proboost config set --secret-key "你的密钥"
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
也可以只配置某一个 MCP:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
proboost config set --mcp patent --secret-key "你的密钥"
|
|
71
|
+
proboost config set --mcp amazon --base-url "http://mcp.microdata-inc.com/mcp-servers/proboost-amazon-mcp"
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
环境变量也支持:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
export PROBOOST_SECRET_KEY="通用密钥"
|
|
78
|
+
export PROBOOST_TIKTOK_SECRET_KEY="TikTok 专用密钥"
|
|
79
|
+
export PROBOOST_PATENT_SECRET_KEY="Patent 专用密钥"
|
|
80
|
+
export PROBOOST_AMAZON_SECRET_KEY="Amazon 专用密钥"
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## 通用命令
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
proboost # 交互式菜单
|
|
87
|
+
proboost list # 列出全部 55 个工具
|
|
88
|
+
proboost docs patent patent_query_search
|
|
89
|
+
|
|
90
|
+
proboost call tiktok tt_video_content \
|
|
91
|
+
--set countryRegion=美国 \
|
|
92
|
+
--set videoId=7587942790298979614
|
|
93
|
+
|
|
94
|
+
proboost call patent patent_query_count \
|
|
95
|
+
--set query_text="TACD: virtual reality"
|
|
96
|
+
|
|
97
|
+
proboost call amazon amz_product_selection \
|
|
98
|
+
--set webSiteId=1 \
|
|
99
|
+
--set pages=1 \
|
|
100
|
+
--set pagesSize=10
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## 快捷命令示例
|
|
104
|
+
|
|
105
|
+
TikTok:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
proboost tiktok commodity category-tree
|
|
109
|
+
proboost tiktok video content 7587942790298979614 --country 美国
|
|
110
|
+
proboost tiktok shop list --data-period last30d --country 美国
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Patent:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
proboost patent search count "TACD: virtual reality"
|
|
117
|
+
proboost patent search query "TACD: virtual reality" --limit 10
|
|
118
|
+
proboost patent detail bibliography --patent-number US11205304B2
|
|
119
|
+
proboost patent image-search single "https://example.com/image.jpg" --model 1 --patent-type D
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Amazon:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
proboost amazon product selection --site 1 --pages 1 --pages-size 10
|
|
126
|
+
proboost amazon product sku B0EXAMPLE --site 1
|
|
127
|
+
proboost amazon hot cat-tree --site 1 --rank-type "Best Seller"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
复杂筛选条件可追加 `key=value`:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
proboost amazon product selection --site 1 minPrice=10 maxPrice=30 sortField=sku_sales_last_30d sortOrder=desc
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Python 客户端
|
|
137
|
+
|
|
138
|
+
```python
|
|
139
|
+
from proboost_cli import Proboost
|
|
140
|
+
|
|
141
|
+
pb = Proboost()
|
|
142
|
+
content = pb.tiktok.tt_video_content(countryRegion="美国", videoId="7587942790298979614")
|
|
143
|
+
count = pb.patent.patent_query_count(query_text="TACD: virtual reality")
|
|
144
|
+
items = pb.amazon.amz_product_selection(webSiteId="1", pages=1, pagesSize=10)
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## 测试
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
python -m pytest
|
|
151
|
+
proboost --help
|
|
152
|
+
proboost list
|
|
153
|
+
```
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/openboost_cli.egg-info/PKG-INFO
|
|
5
|
+
src/openboost_cli.egg-info/SOURCES.txt
|
|
6
|
+
src/openboost_cli.egg-info/dependency_links.txt
|
|
7
|
+
src/openboost_cli.egg-info/entry_points.txt
|
|
8
|
+
src/openboost_cli.egg-info/requires.txt
|
|
9
|
+
src/openboost_cli.egg-info/top_level.txt
|
|
10
|
+
src/proboost_cli/__init__.py
|
|
11
|
+
src/proboost_cli/client.py
|
|
12
|
+
src/proboost_cli/coerce_args.py
|
|
13
|
+
src/proboost_cli/config.py
|
|
14
|
+
src/proboost_cli/mcp_client.py
|
|
15
|
+
src/proboost_cli/parse_result.py
|
|
16
|
+
src/proboost_cli/registry.py
|
|
17
|
+
src/proboost_cli/schemas_loader.py
|
|
18
|
+
src/proboost_cli/cli/__init__.py
|
|
19
|
+
src/proboost_cli/cli/interactive.py
|
|
20
|
+
src/proboost_cli/cli/main.py
|
|
21
|
+
src/proboost_cli/schemas/__init__.py
|
|
22
|
+
src/proboost_cli/schemas/amazon/__init__.py
|
|
23
|
+
src/proboost_cli/schemas/amazon/amz_category_query.json
|
|
24
|
+
src/proboost_cli/schemas/amazon/amz_hot_amz_hot_cat_tree.json
|
|
25
|
+
src/proboost_cli/schemas/amazon/amz_hot_amz_hot_list.json
|
|
26
|
+
src/proboost_cli/schemas/amazon/amz_market_price.json
|
|
27
|
+
src/proboost_cli/schemas/amazon/amz_product_selection.json
|
|
28
|
+
src/proboost_cli/schemas/amazon/amz_review_query.json
|
|
29
|
+
src/proboost_cli/schemas/amazon/amz_sales_query.json
|
|
30
|
+
src/proboost_cli/schemas/amazon/amz_sku_query.json
|
|
31
|
+
src/proboost_cli/schemas/patent/__init__.py
|
|
32
|
+
src/proboost_cli/schemas/patent/patent_abstract_image.json
|
|
33
|
+
src/proboost_cli/schemas/patent/patent_abstract_translated.json
|
|
34
|
+
src/proboost_cli/schemas/patent/patent_bibliography.json
|
|
35
|
+
src/proboost_cli/schemas/patent/patent_claim_data.json
|
|
36
|
+
src/proboost_cli/schemas/patent/patent_claim_translated.json
|
|
37
|
+
src/proboost_cli/schemas/patent/patent_description.json
|
|
38
|
+
src/proboost_cli/schemas/patent/patent_description_translated.json
|
|
39
|
+
src/proboost_cli/schemas/patent/patent_family.json
|
|
40
|
+
src/proboost_cli/schemas/patent/patent_fulltext_image.json
|
|
41
|
+
src/proboost_cli/schemas/patent/patent_image_search_multiple.json
|
|
42
|
+
src/proboost_cli/schemas/patent/patent_image_search_single.json
|
|
43
|
+
src/proboost_cli/schemas/patent/patent_legal_status.json
|
|
44
|
+
src/proboost_cli/schemas/patent/patent_pdf.json
|
|
45
|
+
src/proboost_cli/schemas/patent/patent_query_count.json
|
|
46
|
+
src/proboost_cli/schemas/patent/patent_query_search.json
|
|
47
|
+
src/proboost_cli/schemas/patent/patent_query_search_with_agg.json
|
|
48
|
+
src/proboost_cli/schemas/patent/patent_semantic_search.json
|
|
49
|
+
src/proboost_cli/schemas/tiktok/__init__.py
|
|
50
|
+
src/proboost_cli/schemas/tiktok/tk_expert_sale_show.json
|
|
51
|
+
src/proboost_cli/schemas/tiktok/tt_commodity_detail.json
|
|
52
|
+
src/proboost_cli/schemas/tiktok/tt_commodity_expert_draw_expert_trend.json
|
|
53
|
+
src/proboost_cli/schemas/tiktok/tt_commodity_get_commodity_cat_tree.json
|
|
54
|
+
src/proboost_cli/schemas/tiktok/tt_commodity_info_list.json
|
|
55
|
+
src/proboost_cli/schemas/tiktok/tt_commodity_sales_trend.json
|
|
56
|
+
src/proboost_cli/schemas/tiktok/tt_commodity_statistics_get_category_statistics.json
|
|
57
|
+
src/proboost_cli/schemas/tiktok/tt_commodity_statistics_get_expert_statistics.json
|
|
58
|
+
src/proboost_cli/schemas/tiktok/tt_commodity_statistics_get_price_statistics.json
|
|
59
|
+
src/proboost_cli/schemas/tiktok/tt_commodity_statistics_get_total_statistics.json
|
|
60
|
+
src/proboost_cli/schemas/tiktok/tt_commodity_voice_analyze.json
|
|
61
|
+
src/proboost_cli/schemas/tiktok/tt_expert_basic_analyze.json
|
|
62
|
+
src/proboost_cli/schemas/tiktok/tt_expert_category_analyze.json
|
|
63
|
+
src/proboost_cli/schemas/tiktok/tt_expert_detail.json
|
|
64
|
+
src/proboost_cli/schemas/tiktok/tt_expert_fans_analyze.json
|
|
65
|
+
src/proboost_cli/schemas/tiktok/tt_expert_fans_portrait.json
|
|
66
|
+
src/proboost_cli/schemas/tiktok/tt_expert_info_list.json
|
|
67
|
+
src/proboost_cli/schemas/tiktok/tt_sale_channel_sale_channel.json
|
|
68
|
+
src/proboost_cli/schemas/tiktok/tt_shop_commodity_account_list.json
|
|
69
|
+
src/proboost_cli/schemas/tiktok/tt_shop_detail.json
|
|
70
|
+
src/proboost_cli/schemas/tiktok/tt_shop_info_list.json
|
|
71
|
+
src/proboost_cli/schemas/tiktok/tt_shop_market_info.json
|
|
72
|
+
src/proboost_cli/schemas/tiktok/tt_shop_sales_trend.json
|
|
73
|
+
src/proboost_cli/schemas/tiktok/tt_video_content.json
|
|
74
|
+
src/proboost_cli/schemas/tiktok/tt_video_detail.json
|
|
75
|
+
src/proboost_cli/schemas/tiktok/tt_video_info_list.json
|
|
76
|
+
src/proboost_cli/schemas/tiktok/tt_video_new_video_summary.json
|
|
77
|
+
src/proboost_cli/schemas/tiktok/tt_video_script_diy_query.json
|
|
78
|
+
src/proboost_cli/schemas/tiktok/tt_video_voice_read.json
|
|
79
|
+
src/proboost_cli/schemas/tiktok/tt_video_voice_summary.json
|
|
80
|
+
tests/test_cli.py
|
|
81
|
+
tests/test_parse_result.py
|
|
82
|
+
tests/test_schemas_and_args.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
proboost_cli
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""Unified Proboost MCP CLI and Python client."""
|
|
2
|
+
|
|
3
|
+
__version__ = "0.1.0"
|
|
4
|
+
|
|
5
|
+
DEFAULT_BASE_URLS = {
|
|
6
|
+
"tiktok": "http://mcp.microdata-inc.com/mcp-servers/proboost-tiktok-mcp",
|
|
7
|
+
"patent": "http://mcp.microdata-inc.com/mcp-servers/proboost-patent-mcp",
|
|
8
|
+
"amazon": "http://mcp.microdata-inc.com/mcp-servers/proboost-amazon-mcp",
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
MCP_LABELS = {
|
|
12
|
+
"tiktok": "TikTok",
|
|
13
|
+
"patent": "Patent",
|
|
14
|
+
"amazon": "Amazon",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
MCP_NAMES = tuple(DEFAULT_BASE_URLS.keys())
|
|
18
|
+
|
|
19
|
+
from .client import Proboost
|
|
20
|
+
|
|
21
|
+
__all__ = ["DEFAULT_BASE_URLS", "MCP_LABELS", "MCP_NAMES", "Proboost", "__version__"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""CLI entry points."""
|