cn-coding-plan 1.0.0__py3-none-any.whl
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.
- cn_coding_plan/__init__.py +5 -0
- cn_coding_plan/cli.py +142 -0
- cn_coding_plan-1.0.0.dist-info/METADATA +91 -0
- cn_coding_plan-1.0.0.dist-info/RECORD +8 -0
- cn_coding_plan-1.0.0.dist-info/WHEEL +5 -0
- cn_coding_plan-1.0.0.dist-info/entry_points.txt +2 -0
- cn_coding_plan-1.0.0.dist-info/licenses/LICENSE +21 -0
- cn_coding_plan-1.0.0.dist-info/top_level.txt +1 -0
cn_coding_plan/cli.py
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
"""cn-coding-plan - 国内主流 AI 编程套餐月度/年度成本对比计算器
|
|
4
|
+
零第三方依赖,直接在终端中输出不同强度下的真实算账对比与避坑推荐。
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import argparse
|
|
8
|
+
import sys
|
|
9
|
+
|
|
10
|
+
def format_row(cols, widths, aligns):
|
|
11
|
+
parts = []
|
|
12
|
+
for val, w, align in zip(cols, widths, aligns):
|
|
13
|
+
s = str(val)
|
|
14
|
+
actual_len = sum(2 if ord(c) > 127 else 1 for c in s)
|
|
15
|
+
padding = max(0, w - actual_len)
|
|
16
|
+
if align == '<':
|
|
17
|
+
parts.append(s + ' ' * padding)
|
|
18
|
+
elif align == '>':
|
|
19
|
+
parts.append(' ' * padding + s)
|
|
20
|
+
else:
|
|
21
|
+
left = padding // 2
|
|
22
|
+
right = padding - left
|
|
23
|
+
parts.append(' ' * left + s + ' ' * right)
|
|
24
|
+
return " | ".join(parts)
|
|
25
|
+
|
|
26
|
+
def run_calc(hours=4.0, mode='agent', team=1):
|
|
27
|
+
mode_multiplier = {
|
|
28
|
+
'completion': (0.5, '日常轻度代码补全 (0.5M Tokens/h)'),
|
|
29
|
+
'refactor': (1.5, '中度多文件重构 / Cline (1.5M Tokens/h)'),
|
|
30
|
+
'agent': (3.0, '全自动 Agent 挂机 / Claude Code (3.0M Tokens/h)')
|
|
31
|
+
}
|
|
32
|
+
mult, mode_name = mode_multiplier.get(mode, (1.5, '中度多文件重构'))
|
|
33
|
+
monthly_tokens_m = hours * 22 * mult * team
|
|
34
|
+
annual_tokens_m = monthly_tokens_m * 12
|
|
35
|
+
|
|
36
|
+
plans = [
|
|
37
|
+
{
|
|
38
|
+
'name': '字节火山方舟 Coding Plan',
|
|
39
|
+
'first_month': 9.41,
|
|
40
|
+
'renewal': 40.0,
|
|
41
|
+
'annual': (9.41 + 40.0 * 11) * team,
|
|
42
|
+
'models': 'DeepSeek-V4.1 / GLM-5.3 / Doubao / Kimi',
|
|
43
|
+
'pros': '免抢购 / 首月 ¥9.4 / 4大模型自由切 / 支持 Auto 路由',
|
|
44
|
+
'url': 'https://coding.mybskm.top/go/volcengine-coding'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
'name': '阿里云百炼 Coding Plan Pro',
|
|
48
|
+
'first_month': 39.9,
|
|
49
|
+
'renewal': 200.0,
|
|
50
|
+
'annual': (39.9 + 200.0 * 11) * team,
|
|
51
|
+
'models': '通义千问 Qwen3.8-Max / Qwen3.8-Coder',
|
|
52
|
+
'pros': '国内直连极低延迟 / 工具调用稳定 (热门档需早09:30蹲点)',
|
|
53
|
+
'url': 'https://coding.mybskm.top/go/aliyun-coding'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
'name': '腾讯云通用 Token Plan Lite',
|
|
57
|
+
'first_month': 28.0,
|
|
58
|
+
'renewal': 39.0,
|
|
59
|
+
'annual': (28.0 + 39.0 * 11) * team,
|
|
60
|
+
'models': '腾讯混元 Turbo/T1 / DeepSeek / GLM',
|
|
61
|
+
'pros': '积分池按需扣减 / 配合 WorkBuddy 编程助手',
|
|
62
|
+
'url': 'https://coding.mybskm.top/go/tencent-workbuddy'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
'name': '智谱 GLM Coding Plan Lite',
|
|
66
|
+
'first_month': 0.0,
|
|
67
|
+
'renewal': 94.4,
|
|
68
|
+
'annual': (0.0 + 94.4 * 11) * team,
|
|
69
|
+
'models': '智谱 GLM-5.3 / GLM-5.3-Flash',
|
|
70
|
+
'pros': '实名可领 2000万免额 Tokens / 长文本学术利器 (拼好模已下线)',
|
|
71
|
+
'url': 'https://coding.mybskm.top/go/zhipu-glm'
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
'name': '海外 Cursor Pro 对照组 ($20/月)',
|
|
75
|
+
'first_month': 145.0,
|
|
76
|
+
'renewal': 145.0,
|
|
77
|
+
'annual': (145.0 * 12) * team,
|
|
78
|
+
'models': 'Claude 3.5 Sonnet / GPT-4o',
|
|
79
|
+
'pros': '原生 IDE 补全体验强 (需外币卡、网络风控与代付溢价)',
|
|
80
|
+
'url': 'https://cursor.com'
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
'name': '海外 Claude Pro 对照组 ($20/月)',
|
|
84
|
+
'first_month': 145.0,
|
|
85
|
+
'renewal': 145.0,
|
|
86
|
+
'annual': (145.0 * 12) * team,
|
|
87
|
+
'models': 'Claude 3.5 Sonnet / Haiku 3.5',
|
|
88
|
+
'pros': '网页端与官方 CLI (高频重构易触碰 5h 频率墙)',
|
|
89
|
+
'url': 'https://claude.com'
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
print("=" * 88)
|
|
94
|
+
print(" 🚀 cn-coding-plan · 国内 AI 编程算力套餐月度/年度成本对比计算器")
|
|
95
|
+
print("=" * 88)
|
|
96
|
+
print(f"设定参数: 每天高频使用 {hours} 小时 | 模式: {mode_name} | 团队人数: {team} 人")
|
|
97
|
+
print(f"预估工作量: 月度约 {monthly_tokens_m:.1f} M Tokens | 年度约 {annual_tokens_m:.1f} M Tokens\n")
|
|
98
|
+
|
|
99
|
+
widths = [28, 12, 12, 12, 20]
|
|
100
|
+
aligns = ['<', '>', '>', '>', '<']
|
|
101
|
+
headers = ['套餐名称', '首月支出(¥)', '次月续费(¥)', '年总预算(¥)', '核心特征与选型避坑']
|
|
102
|
+
|
|
103
|
+
print(format_row(headers, widths, aligns))
|
|
104
|
+
print("-" * 92)
|
|
105
|
+
|
|
106
|
+
for p in plans:
|
|
107
|
+
row = [
|
|
108
|
+
p['name'],
|
|
109
|
+
f"¥{p['first_month']:.1f}",
|
|
110
|
+
f"¥{p['renewal']:.1f}",
|
|
111
|
+
f"¥{p['annual']:.1f}",
|
|
112
|
+
p['pros']
|
|
113
|
+
]
|
|
114
|
+
print(format_row(row, widths, aligns))
|
|
115
|
+
|
|
116
|
+
print("-" * 92)
|
|
117
|
+
cursor_annual = (145.0 * 12) * team
|
|
118
|
+
volc_annual = (9.41 + 40.0 * 11) * team
|
|
119
|
+
saved_volc = cursor_annual - volc_annual
|
|
120
|
+
print(f"\n💡 算账结论:")
|
|
121
|
+
print(f" 1. 相比海外 Cursor Pro (年费 ¥{cursor_annual:.0f}),改选火山方舟国内套餐 (年费 ¥{volc_annual:.0f}),")
|
|
122
|
+
print(f" 每年立省 ¥{saved_volc:.0f} (节约约 {saved_volc/cursor_annual*100:.1f}%)!")
|
|
123
|
+
print(f" 2. 全天候 Agent 挂机推荐:腾讯云双11特惠轻量服务器 (4核4G,¥38/年) + 火山方舟/阿里百炼组合。")
|
|
124
|
+
print(f" 3. 若需海外官方订阅通道(解决绑卡与风控):")
|
|
125
|
+
print(f" - 虚拟信用卡扣费: PokePay (https://coding.mybskm.top/go/pokepay)")
|
|
126
|
+
print(f" - 双ISP纯净原生家宽: 丽萨主机 LisaHost (https://coding.mybskm.top/go/lisahost)")
|
|
127
|
+
print(f" - 高速CN2 GIA回国专线: 搬瓦工 BWH (https://coding.mybskm.top/go/bwh)")
|
|
128
|
+
print(f"\n👉 在线完整比价大表、活动下线实时日志与交互式账单计算器:")
|
|
129
|
+
print(f" https://coding.mybskm.top/")
|
|
130
|
+
print("=" * 88)
|
|
131
|
+
return 0
|
|
132
|
+
|
|
133
|
+
def main():
|
|
134
|
+
parser = argparse.ArgumentParser(description="cn-coding-plan: 国内 AI 编程套餐真实算账对比工具")
|
|
135
|
+
parser.add_argument('--hours', type=float, default=4.0, help="每天开发使用时长(小时),默认 4.0")
|
|
136
|
+
parser.add_argument('--mode', choices=['completion', 'refactor', 'agent'], default='agent', help="使用模式:completion(轻度补全) / refactor(重度重构) / agent(全天候Agent)")
|
|
137
|
+
parser.add_argument('--team', type=int, default=1, help="团队开发者人数,默认 1")
|
|
138
|
+
args = parser.parse_args()
|
|
139
|
+
return run_calc(args.hours, args.mode, args.team)
|
|
140
|
+
|
|
141
|
+
if __name__ == '__main__':
|
|
142
|
+
sys.exit(main())
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cn-coding-plan
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: 国内 AI 编程算力套餐(Coding Plan / Token Plan)月度与年度成本对比计算器
|
|
5
|
+
Author-email: OpenHoud Benchmark <dev@codingplan-bench.org>
|
|
6
|
+
Project-URL: Homepage, https://coding.mybskm.top/
|
|
7
|
+
Project-URL: Online Calculator, https://coding.mybskm.top/
|
|
8
|
+
Project-URL: Changelog, https://coding.mybskm.top/changelog.html
|
|
9
|
+
Keywords: coding-plan,token-plan,claude-code,cursor,ai-pricing
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Topic :: Software Development
|
|
14
|
+
Classifier: Topic :: Utilities
|
|
15
|
+
Requires-Python: >=3.8
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
License-File: LICENSE
|
|
18
|
+
Dynamic: license-file
|
|
19
|
+
|
|
20
|
+
# cn-coding-plan · 国内 AI 编程算力套餐月度/年度成本对比计算器
|
|
21
|
+
|
|
22
|
+
专为国内使用 Claude Code、Cursor、Cline、Roo Code、OpenCode 的开发者打造的零依赖终端算账工具。
|
|
23
|
+
|
|
24
|
+
直观对比字节火山方舟、阿里百炼、腾讯云 Token Plan、智谱 GLM 等国内大模型 Coding Plan 套餐与海外 Cursor / Claude Pro 的真实成本差异与技术选型要点。
|
|
25
|
+
|
|
26
|
+
在线交互式比价台与官方活动下线日志:[https://coding.mybskm.top/](https://coding.mybskm.top/)
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## ⚡ 快速安装与使用
|
|
31
|
+
|
|
32
|
+
无需克隆代码,直接通过 pip 安装:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pip install -U cn-coding-plan
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 1. 默认参数快速算账(每天 4 小时、Agent 模式)
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
cn-coding-plan
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 2. 自定义参数对比
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# 每天 6 小时、中度多文件重构模式、团队 3 人
|
|
48
|
+
cn-coding-plan --hours 6 --mode refactor --team 3
|
|
49
|
+
|
|
50
|
+
# 每天 2 小时、日常轻度补全模式、单人使用
|
|
51
|
+
cn-coding-plan --hours 2 --mode completion --team 1
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 📊 2026 主流国内套餐核验与对比总览
|
|
57
|
+
|
|
58
|
+
| 平台 / 套餐 | 首月参考价 | 次月日常月费 | 核心支持模型 | 选型特征与建议 |
|
|
59
|
+
| :--- | :--- | :--- | :--- | :--- |
|
|
60
|
+
| **字节火山方舟 Coding Plan** | **¥9.4** (活动) | ¥40.0/月 | DeepSeek-V4.1 / GLM-5.3 / Doubao / Kimi | 首月极低门槛、多模型一键切换、支持 Auto 智能路由 |
|
|
61
|
+
| **阿里云百炼 Coding Plan Pro** | **¥39.9** (限量) | ¥200.0/月 | 通义千问 Qwen3.8-Max / Qwen3.8-Coder | 国内直连超低延迟、多文件工具调用极稳 (特惠档需早 09:30 抢购) |
|
|
62
|
+
| **腾讯云通用 Token Plan** | **¥28.0** 起 | ¥39.0/月 | 腾讯混元 Turbo/T1 / DeepSeek / GLM | 积分池弹性消耗机制,深度适配 WorkBuddy 编程插件 |
|
|
63
|
+
| **智谱 GLM Coding Plan** | **¥0.0** (实名领券) | ¥94.4/月 | 智谱 GLM-5.3 / GLM-5.3-Flash | 新用户实名可领 2000 万 Tokens,长上下文学术与复杂架构分析利器 |
|
|
64
|
+
| **海外 Cursor Pro 对照组** | ¥145 ($20) | ¥145/月 | Claude 3.5 Sonnet / GPT-4o | 原生 IDE 体验好,但需外币卡且存在网络与代付风控溢价 |
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 💳 海外订阅与出海开发生态推荐
|
|
69
|
+
|
|
70
|
+
如果你仍需要订阅 Cursor Pro / Claude 官方服务,或需要搭建低延迟、防风控的开发/跨境运行环境:
|
|
71
|
+
|
|
72
|
+
| 产品 | 特点与适用场景 | 官方入口 |
|
|
73
|
+
| :--- | :--- | :--- |
|
|
74
|
+
| **PokePay 虚拟卡** | 0 门槛开通 Visa/Mastercard 虚拟卡,支持国内便捷充值,快速绑定 Cursor、Claude、OpenAI 官方扣费 | [PokePay 虚拟卡开通](https://coding.mybskm.top/go/pokepay) |
|
|
75
|
+
| **丽萨主机 LisaHost** | 美区/港区双 ISP 原生家宽纯净住宅 IP VPS,支持支付宝付款,海外开发与 API 访问防风控首选 | [丽萨主机官网](https://coding.mybskm.top/go/lisahost) |
|
|
76
|
+
| **搬瓦工 BWH** | 顶级 CN2 GIA / 软银高速回国线路 VPS,超低延迟与大带宽,海外 API 转发与常驻主机枢纽 | [搬瓦工高速方案](https://coding.mybskm.top/go/bwh) |
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 🌐 线上专题与知识库
|
|
81
|
+
|
|
82
|
+
- 在线计算器:[https://coding.mybskm.top/](https://coding.mybskm.top/)
|
|
83
|
+
- 价格与活动变更日志:[https://coding.mybskm.top/changelog.html](https://coding.mybskm.top/changelog.html)
|
|
84
|
+
- Claude Code 国内直连实测:[https://coding.mybskm.top/claude-code-cn.html](https://coding.mybskm.top/claude-code-cn.html)
|
|
85
|
+
- Cursor 国内平替选型全方位对比:[https://coding.mybskm.top/cursor-alternative.html](https://coding.mybskm.top/cursor-alternative.html)
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## 📄 License
|
|
90
|
+
|
|
91
|
+
MIT License
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
cn_coding_plan/__init__.py,sha256=shwXtO0JLZeQ20NwPBsHFQ64-ZmH97VTTmRPm8A2Gf4,112
|
|
2
|
+
cn_coding_plan/cli.py,sha256=FEdofQXnXppnUQsxarO0QFR0UtoEdIpk6QtUeb3acBM,6344
|
|
3
|
+
cn_coding_plan-1.0.0.dist-info/licenses/LICENSE,sha256=IAaQJa-jR-Ud25WctmTgTg9BXfKVrXoWY8HF_vReYxw,1075
|
|
4
|
+
cn_coding_plan-1.0.0.dist-info/METADATA,sha256=XiAWWbPYcpllDDzYLrQwCXID8lSXuZpI4H9L-U7v8WQ,4354
|
|
5
|
+
cn_coding_plan-1.0.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
6
|
+
cn_coding_plan-1.0.0.dist-info/entry_points.txt,sha256=oFXpDXbxG7Fp70GbwromoD8st_rU25zIM3OZDcxVH_s,59
|
|
7
|
+
cn_coding_plan-1.0.0.dist-info/top_level.txt,sha256=EjhKy6695vSXrOSBIaw36uO9d3DwvwxhID1gPbkdU7g,15
|
|
8
|
+
cn_coding_plan-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 OpenHoud Benchmark
|
|
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 @@
|
|
|
1
|
+
cn_coding_plan
|