git-analytics-cli 0.1.1__tar.gz → 0.1.3__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.
Files changed (18) hide show
  1. {git_analytics_cli-0.1.1/git_analytics_cli.egg-info → git_analytics_cli-0.1.3}/PKG-INFO +10 -15
  2. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/README.md +8 -12
  3. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/git_analytics.py +4 -4
  4. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3/git_analytics_cli.egg-info}/PKG-INFO +10 -15
  5. git_analytics_cli-0.1.3/git_analytics_cli.egg-info/requires.txt +1 -0
  6. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/pyproject.toml +2 -5
  7. git_analytics_cli-0.1.1/git_analytics_cli.egg-info/requires.txt +0 -3
  8. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/LICENSE +0 -0
  9. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/MANIFEST.in +0 -0
  10. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/gen_share_card.py +0 -0
  11. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/generate_report.py +0 -0
  12. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/git_analytics_cli.egg-info/SOURCES.txt +0 -0
  13. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/git_analytics_cli.egg-info/dependency_links.txt +0 -0
  14. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/git_analytics_cli.egg-info/entry_points.txt +0 -0
  15. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/git_analytics_cli.egg-info/top_level.txt +0 -0
  16. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/run.py +0 -0
  17. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/setup.cfg +0 -0
  18. {git_analytics_cli-0.1.1 → git_analytics_cli-0.1.3}/share-card.html +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-analytics-cli
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: Local-first Git habit analytics — scan your repos, get a developer persona and health report
5
5
  Author: Git Analytics Contributors
6
6
  License-Expression: MIT
@@ -22,8 +22,7 @@ Classifier: Topic :: Software Development :: Version Control :: Git
22
22
  Requires-Python: >=3.8
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Provides-Extra: share-card
26
- Requires-Dist: Pillow>=8.0; extra == "share-card"
25
+ Requires-Dist: Pillow>=8.0
27
26
  Dynamic: license-file
28
27
 
29
28
  # Git Analytics
@@ -38,12 +37,6 @@ Dynamic: license-file
38
37
  pip install git-analytics-cli
39
38
  ```
40
39
 
41
- 如需生成 PNG 分享卡片(可选,需要 Pillow):
42
-
43
- ```bash
44
- pip install git-analytics-cli[share-card]
45
- ```
46
-
47
40
  ## 30 秒快速开始
48
41
 
49
42
  ```bash
@@ -123,11 +116,13 @@ git-analytics ~/Projects --max-depth 5
123
116
 
124
117
  ## 分享卡片
125
118
 
126
- 使用 `--share-card` 生成一个 HTML 设计器,可以在浏览器中:
119
+ 运行 `git-analytics --share-card` 生成 `share-card.html`,浏览器打开后可预览、选主题、导出 PNG。
127
120
 
128
- - 预览你的开发者画像卡片
129
- - 选择配色主题
130
- - 导出 PNG 图片用于社交分享
121
+ 也可以命令行直接生成 PNG:
122
+
123
+ ```bash
124
+ python3 -m gen_share_card --data data.json --output card.png
125
+ ```
131
126
 
132
127
  ## 为什么不是全盘扫描
133
128
 
@@ -166,9 +161,9 @@ GitStats 告诉你一个仓库发生了什么;Git Analytics 告诉你你是一
166
161
  ## 技术栈
167
162
 
168
163
  - Python 3.8+
169
- - 零运行时依赖(纯标准库)
164
+ - Pillow(分享卡片 PNG 生成)
170
165
  - Chart.js 可视化报告
171
- - 本地运行
166
+ - 本地运行,不上传任何数据
172
167
 
173
168
  ## License
174
169
 
@@ -10,12 +10,6 @@
10
10
  pip install git-analytics-cli
11
11
  ```
12
12
 
13
- 如需生成 PNG 分享卡片(可选,需要 Pillow):
14
-
15
- ```bash
16
- pip install git-analytics-cli[share-card]
17
- ```
18
-
19
13
  ## 30 秒快速开始
20
14
 
21
15
  ```bash
@@ -95,11 +89,13 @@ git-analytics ~/Projects --max-depth 5
95
89
 
96
90
  ## 分享卡片
97
91
 
98
- 使用 `--share-card` 生成一个 HTML 设计器,可以在浏览器中:
92
+ 运行 `git-analytics --share-card` 生成 `share-card.html`,浏览器打开后可预览、选主题、导出 PNG。
99
93
 
100
- - 预览你的开发者画像卡片
101
- - 选择配色主题
102
- - 导出 PNG 图片用于社交分享
94
+ 也可以命令行直接生成 PNG:
95
+
96
+ ```bash
97
+ python3 -m gen_share_card --data data.json --output card.png
98
+ ```
103
99
 
104
100
  ## 为什么不是全盘扫描
105
101
 
@@ -138,9 +134,9 @@ GitStats 告诉你一个仓库发生了什么;Git Analytics 告诉你你是一
138
134
  ## 技术栈
139
135
 
140
136
  - Python 3.8+
141
- - 零运行时依赖(纯标准库)
137
+ - Pillow(分享卡片 PNG 生成)
142
138
  - Chart.js 可视化报告
143
- - 本地运行
139
+ - 本地运行,不上传任何数据
144
140
 
145
141
  ## License
146
142
 
@@ -376,14 +376,14 @@ def analyze_habits(all_repos):
376
376
  # 计算 Developer Habit Score
377
377
  # ============================================================
378
378
 
379
- # 1. 提交粒度得分 (30分)
379
+ # 1. 提交粒度得分 (40分)
380
380
  # 小步快跑 = 高分,大包提交 = 低分,线性插值
381
381
  avg_commits_per_day = total_commits / max(sum(r['active_days'] for r in all_repos), 1)
382
- granularity_score = round(min(30, avg_commits_per_day / 4.5 * 30))
382
+ granularity_score = round(min(40, avg_commits_per_day / 4.5 * 40))
383
383
 
384
- # 2. 测试意识得分 (20分)
384
+ # 2. 测试意识得分 (10分)
385
385
  test_ratio = total_test_files / max(total_file_changes, 1)
386
- test_score = round(min(20, test_ratio / 0.15 * 20))
386
+ test_score = round(min(10, test_ratio / 0.15 * 10))
387
387
 
388
388
  # 3. 文档意识得分 (15分)
389
389
  doc_ratio = total_doc_files / max(total_file_changes, 1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-analytics-cli
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: Local-first Git habit analytics — scan your repos, get a developer persona and health report
5
5
  Author: Git Analytics Contributors
6
6
  License-Expression: MIT
@@ -22,8 +22,7 @@ Classifier: Topic :: Software Development :: Version Control :: Git
22
22
  Requires-Python: >=3.8
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Provides-Extra: share-card
26
- Requires-Dist: Pillow>=8.0; extra == "share-card"
25
+ Requires-Dist: Pillow>=8.0
27
26
  Dynamic: license-file
28
27
 
29
28
  # Git Analytics
@@ -38,12 +37,6 @@ Dynamic: license-file
38
37
  pip install git-analytics-cli
39
38
  ```
40
39
 
41
- 如需生成 PNG 分享卡片(可选,需要 Pillow):
42
-
43
- ```bash
44
- pip install git-analytics-cli[share-card]
45
- ```
46
-
47
40
  ## 30 秒快速开始
48
41
 
49
42
  ```bash
@@ -123,11 +116,13 @@ git-analytics ~/Projects --max-depth 5
123
116
 
124
117
  ## 分享卡片
125
118
 
126
- 使用 `--share-card` 生成一个 HTML 设计器,可以在浏览器中:
119
+ 运行 `git-analytics --share-card` 生成 `share-card.html`,浏览器打开后可预览、选主题、导出 PNG。
127
120
 
128
- - 预览你的开发者画像卡片
129
- - 选择配色主题
130
- - 导出 PNG 图片用于社交分享
121
+ 也可以命令行直接生成 PNG:
122
+
123
+ ```bash
124
+ python3 -m gen_share_card --data data.json --output card.png
125
+ ```
131
126
 
132
127
  ## 为什么不是全盘扫描
133
128
 
@@ -166,9 +161,9 @@ GitStats 告诉你一个仓库发生了什么;Git Analytics 告诉你你是一
166
161
  ## 技术栈
167
162
 
168
163
  - Python 3.8+
169
- - 零运行时依赖(纯标准库)
164
+ - Pillow(分享卡片 PNG 生成)
170
165
  - Chart.js 可视化报告
171
- - 本地运行
166
+ - 本地运行,不上传任何数据
172
167
 
173
168
  ## License
174
169
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "git-analytics-cli"
7
- version = "0.1.1"
7
+ version = "0.1.3"
8
8
  description = "Local-first Git habit analytics — scan your repos, get a developer persona and health report"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -24,10 +24,7 @@ classifiers = [
24
24
  "Programming Language :: Python :: 3.13",
25
25
  "Topic :: Software Development :: Version Control :: Git",
26
26
  ]
27
- dependencies = []
28
-
29
- [project.optional-dependencies]
30
- share-card = ["Pillow>=8.0"]
27
+ dependencies = ["Pillow>=8.0"]
31
28
 
32
29
  [project.urls]
33
30
  Homepage = "https://github.com/mark-618/git-analytics"
@@ -1,3 +0,0 @@
1
-
2
- [share-card]
3
- Pillow>=8.0