zerone-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.
@@ -0,0 +1,110 @@
1
+ Metadata-Version: 2.4
2
+ Name: zerone-cli
3
+ Version: 0.1.0
4
+ Summary: Zerone 私募股权数据 CLI 工具
5
+ Author-email: Zerone <tech@zerone.com.cn>
6
+ License: MIT
7
+ Project-URL: Homepage, https://ai.zerone.com.cn
8
+ Project-URL: Documentation, https://ai.zerone.com.cn
9
+ Keywords: cli,private-equity,finance,mcp,zerone
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.9
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Environment :: Console
17
+ Classifier: Intended Audience :: Financial and Insurance Industry
18
+ Classifier: Topic :: Office/Business :: Financial
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown
21
+ Requires-Dist: typer>=0.9.0
22
+ Requires-Dist: httpx>=0.24.0
23
+ Requires-Dist: pydantic>=2.0.0
24
+ Requires-Dist: pyyaml>=6.0
25
+ Requires-Dist: rich>=13.0.0
26
+ Requires-Dist: pandas>=2.0.0
27
+
28
+ # Zerone CLI
29
+
30
+ Zerone 私募股权数据命令行工具,通过 API Key 直接查询 Zerone 数据平台。
31
+
32
+ ## 安装
33
+
34
+ ```bash
35
+ pip install zerone-cli
36
+ ```
37
+
38
+ ## 快速开始
39
+
40
+ ### 1. 配置 API Key
41
+
42
+ ```bash
43
+ zerone config set-api-key YOUR_API_KEY
44
+ ```
45
+
46
+ > 如何获取 API Key?请访问 [https://ai.zerone.com.cn](https://ai.zerone.com.cn) 注册账号后申请。
47
+
48
+ ### 2. 查看帮助
49
+
50
+ ```bash
51
+ zerone --help
52
+ ```
53
+
54
+ ### 3. 开始查询
55
+
56
+ ```bash
57
+ # 搜索实体
58
+ zerone entity-search "字节跳动"
59
+
60
+ # 查询实体综合画像
61
+ zerone entity-profile "字节跳动"
62
+
63
+ # 查询财务数据列表
64
+ zerone entity-financial-list "字节跳动"
65
+
66
+ # 查询管理基金列表
67
+ zerone entity-managed-funds-list "红杉资本"
68
+
69
+ # 查询退出列表
70
+ zerone entity-exit-list "红杉资本"
71
+
72
+ # 查询投资列表
73
+ zerone entity-invest-list "红杉资本"
74
+
75
+ # 查询融资概率预测
76
+ zerone model-financing-probability "字节跳动"
77
+ ```
78
+
79
+ ## 命令列表
80
+
81
+ | 命令 | 说明 |
82
+ |------|------|
83
+ | `zerone config set-api-key` | 设置 API Key |
84
+ | `zerone config set-server-url` | 设置服务器地址(可选) |
85
+ | `zerone config show` | 查看当前配置 |
86
+ | `zerone entity-search` | 实体模糊搜索 |
87
+ | `zerone entity-profile` | 查询实体综合画像 |
88
+ | `zerone entity-financial-list` | 查询实体财务数据列表(分页) |
89
+ | `zerone entity-managed-funds-list` | 查询管理基金列表(分页) |
90
+ | `zerone entity-exit-list` | 查询退出列表(分页) |
91
+ | `zerone entity-invest-list` | 查询投资列表(分页) |
92
+ | `zerone model-financing-probability` | 查询融资概率预测模型 |
93
+
94
+ ## 配置说明
95
+
96
+ 配置文件保存在 `~/.zerone/config.yaml`,支持以下环境变量覆盖:
97
+
98
+ | 环境变量 | 说明 |
99
+ |----------|------|
100
+ | `ZERONE_API_KEY` | API Key |
101
+ | `ZERONE_SERVER_URL` | 服务器地址 |
102
+
103
+ ## 系统要求
104
+
105
+ - Python 3.9+
106
+ - 有效的 Zerone API Key
107
+
108
+ ## 许可证
109
+
110
+ MIT
@@ -0,0 +1,83 @@
1
+ # Zerone CLI
2
+
3
+ Zerone 私募股权数据命令行工具,通过 API Key 直接查询 Zerone 数据平台。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ pip install zerone-cli
9
+ ```
10
+
11
+ ## 快速开始
12
+
13
+ ### 1. 配置 API Key
14
+
15
+ ```bash
16
+ zerone config set-api-key YOUR_API_KEY
17
+ ```
18
+
19
+ > 如何获取 API Key?请访问 [https://ai.zerone.com.cn](https://ai.zerone.com.cn) 注册账号后申请。
20
+
21
+ ### 2. 查看帮助
22
+
23
+ ```bash
24
+ zerone --help
25
+ ```
26
+
27
+ ### 3. 开始查询
28
+
29
+ ```bash
30
+ # 搜索实体
31
+ zerone entity-search "字节跳动"
32
+
33
+ # 查询实体综合画像
34
+ zerone entity-profile "字节跳动"
35
+
36
+ # 查询财务数据列表
37
+ zerone entity-financial-list "字节跳动"
38
+
39
+ # 查询管理基金列表
40
+ zerone entity-managed-funds-list "红杉资本"
41
+
42
+ # 查询退出列表
43
+ zerone entity-exit-list "红杉资本"
44
+
45
+ # 查询投资列表
46
+ zerone entity-invest-list "红杉资本"
47
+
48
+ # 查询融资概率预测
49
+ zerone model-financing-probability "字节跳动"
50
+ ```
51
+
52
+ ## 命令列表
53
+
54
+ | 命令 | 说明 |
55
+ |------|------|
56
+ | `zerone config set-api-key` | 设置 API Key |
57
+ | `zerone config set-server-url` | 设置服务器地址(可选) |
58
+ | `zerone config show` | 查看当前配置 |
59
+ | `zerone entity-search` | 实体模糊搜索 |
60
+ | `zerone entity-profile` | 查询实体综合画像 |
61
+ | `zerone entity-financial-list` | 查询实体财务数据列表(分页) |
62
+ | `zerone entity-managed-funds-list` | 查询管理基金列表(分页) |
63
+ | `zerone entity-exit-list` | 查询退出列表(分页) |
64
+ | `zerone entity-invest-list` | 查询投资列表(分页) |
65
+ | `zerone model-financing-probability` | 查询融资概率预测模型 |
66
+
67
+ ## 配置说明
68
+
69
+ 配置文件保存在 `~/.zerone/config.yaml`,支持以下环境变量覆盖:
70
+
71
+ | 环境变量 | 说明 |
72
+ |----------|------|
73
+ | `ZERONE_API_KEY` | API Key |
74
+ | `ZERONE_SERVER_URL` | 服务器地址 |
75
+
76
+ ## 系统要求
77
+
78
+ - Python 3.9+
79
+ - 有效的 Zerone API Key
80
+
81
+ ## 许可证
82
+
83
+ MIT
@@ -0,0 +1,57 @@
1
+ [project]
2
+ name = "zerone-cli"
3
+ version = "0.1.0"
4
+ description = "Zerone 私募股权数据 CLI 工具"
5
+ readme = "README.md"
6
+ license = { text = "MIT" }
7
+ authors = [
8
+ { name = "Zerone", email = "tech@zerone.com.cn" }
9
+ ]
10
+ keywords = ["cli", "private-equity", "finance", "mcp", "zerone"]
11
+ classifiers = [
12
+ "Programming Language :: Python :: 3",
13
+ "Programming Language :: Python :: 3.9",
14
+ "Programming Language :: Python :: 3.10",
15
+ "Programming Language :: Python :: 3.11",
16
+ "Programming Language :: Python :: 3.12",
17
+ "Operating System :: OS Independent",
18
+ "Environment :: Console",
19
+ "Intended Audience :: Financial and Insurance Industry",
20
+ "Topic :: Office/Business :: Financial",
21
+ ]
22
+ requires-python = ">=3.9"
23
+ dependencies = [
24
+ "typer>=0.9.0",
25
+ "httpx>=0.24.0",
26
+ "pydantic>=2.0.0",
27
+ "pyyaml>=6.0",
28
+ "rich>=13.0.0",
29
+ "pandas>=2.0.0",
30
+ ]
31
+
32
+ [project.urls]
33
+ Homepage = "https://ai.zerone.com.cn"
34
+ Documentation = "https://ai.zerone.com.cn"
35
+
36
+ [project.scripts]
37
+ zerone = "cli.main:app"
38
+ zerone-cli = "cli.main:app"
39
+
40
+ [build-system]
41
+ requires = ["setuptools>=61.0", "wheel"]
42
+ build-backend = "setuptools.build_meta"
43
+
44
+ [tool.setuptools.packages.find]
45
+ where = [".."]
46
+ include = ["cli*"]
47
+
48
+ # 环境说明:
49
+ # prod(默认): ZERONE_ENV=prod -> https://ai.zerone.com.cn/mcp
50
+ # dev: ZERONE_ENV=dev -> http://ai-dev.zerone.com.cn/mcp
51
+ #
52
+ # 安装方式:
53
+ # 生产环境: pip install -e .
54
+ # 开发环境: ZERONE_ENV=dev pip install -e .
55
+ #
56
+ # 运行时切换环境:
57
+ # ZERONE_ENV=dev zerone entity-profile "字节跳动"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+