Skip to content

Commit 3bfd8ca

Browse files
committed
Add metrics for pypi package downloads
1 parent 920d5f1 commit 3bfd8ca

File tree

10 files changed

+1182
-2
lines changed

10 files changed

+1182
-2
lines changed

.github/workflows/deploy-catalog.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,15 @@ jobs:
5353
python-version: '3.12'
5454

5555
- name: Install Python dependencies
56-
run: uv pip install --system pyyaml
56+
run: uv pip install --system pyyaml requests
5757

5858
- name: Sync YAML repositories to JSON
5959
run: python scripts/sync_repositories_to_json.py
6060

61+
- name: Collect PyPI metrics
62+
run: python scripts/collect_pypi_metrics.py
63+
continue-on-error: true
64+
6165
- name: Install Node dependencies
6266
working-directory: catalog
6367
run: npm ci

catalog/app/analytics/page.tsx

Lines changed: 515 additions & 1 deletion
Large diffs are not rendered by default.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"packages": {
3+
"pycyclops": {
4+
"repo_id": "VectorInstitute/cyclops",
5+
"name": "cyclops",
6+
"package_name": "pycyclops",
7+
"timestamp": "2025-11-26T20:48:59.853569+00:00",
8+
"downloads_last_day": 3,
9+
"downloads_last_week": 505,
10+
"downloads_last_month": 1739,
11+
"total_downloads": 5077,
12+
"version": "0.2.12",
13+
"release_date": "2025-01-22T16:00:42"
14+
},
15+
"fed-rag": {
16+
"repo_id": "VectorInstitute/fed-rag",
17+
"name": "fed-rag",
18+
"package_name": "fed-rag",
19+
"timestamp": "2025-11-26T20:49:01.143760+00:00",
20+
"downloads_last_day": 6,
21+
"downloads_last_week": 8,
22+
"downloads_last_month": 36,
23+
"total_downloads": 1949,
24+
"version": "0.0.27",
25+
"release_date": "2025-06-18T04:08:33"
26+
},
27+
"vec-inf": {
28+
"repo_id": "VectorInstitute/vector-inference",
29+
"name": "vector-inference",
30+
"package_name": "vec-inf",
31+
"timestamp": "2025-11-26T20:49:02.332426+00:00",
32+
"downloads_last_day": 5,
33+
"downloads_last_week": 12,
34+
"downloads_last_month": 184,
35+
"total_downloads": 890,
36+
"version": "0.7.2",
37+
"release_date": "2025-11-04T23:24:41"
38+
},
39+
"fair-sense-ai": {
40+
"repo_id": "VectorInstitute/fair-sense-ai",
41+
"name": "fair-sense-ai",
42+
"package_name": "fair-sense-ai",
43+
"timestamp": "2025-11-26T20:49:03.496054+00:00",
44+
"downloads_last_day": 1,
45+
"downloads_last_week": 10,
46+
"downloads_last_month": 57,
47+
"total_downloads": 801,
48+
"version": "1.0.11",
49+
"release_date": "2025-06-21T18:46:37"
50+
},
51+
"fl4health": {
52+
"repo_id": "VectorInstitute/FL4Health",
53+
"name": "fl4health",
54+
"package_name": "fl4health",
55+
"timestamp": "2025-11-26T20:49:04.672537+00:00",
56+
"downloads_last_day": 1,
57+
"downloads_last_week": 62,
58+
"downloads_last_month": 147,
59+
"total_downloads": 1220,
60+
"version": "0.4.0",
61+
"release_date": "2025-07-15T20:39:30"
62+
}
63+
},
64+
"last_updated": "2025-11-26T20:49:05.866774+00:00"
65+
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"packages": {
3+
"pycyclops": {
4+
"name": "cyclops",
5+
"repo_id": "VectorInstitute/cyclops",
6+
"snapshots": [
7+
{
8+
"repo_id": "VectorInstitute/cyclops",
9+
"name": "cyclops",
10+
"package_name": "pycyclops",
11+
"timestamp": "2025-11-26T20:48:59.853569+00:00",
12+
"downloads_last_day": 3,
13+
"downloads_last_week": 505,
14+
"downloads_last_month": 1739,
15+
"total_downloads": 5077,
16+
"version": "0.2.12",
17+
"release_date": "2025-01-22T16:00:42"
18+
}
19+
]
20+
},
21+
"fed-rag": {
22+
"name": "fed-rag",
23+
"repo_id": "VectorInstitute/fed-rag",
24+
"snapshots": [
25+
{
26+
"repo_id": "VectorInstitute/fed-rag",
27+
"name": "fed-rag",
28+
"package_name": "fed-rag",
29+
"timestamp": "2025-11-26T20:49:01.143760+00:00",
30+
"downloads_last_day": 6,
31+
"downloads_last_week": 8,
32+
"downloads_last_month": 36,
33+
"total_downloads": 1949,
34+
"version": "0.0.27",
35+
"release_date": "2025-06-18T04:08:33"
36+
}
37+
]
38+
},
39+
"vec-inf": {
40+
"name": "vector-inference",
41+
"repo_id": "VectorInstitute/vector-inference",
42+
"snapshots": [
43+
{
44+
"repo_id": "VectorInstitute/vector-inference",
45+
"name": "vector-inference",
46+
"package_name": "vec-inf",
47+
"timestamp": "2025-11-26T20:49:02.332426+00:00",
48+
"downloads_last_day": 5,
49+
"downloads_last_week": 12,
50+
"downloads_last_month": 184,
51+
"total_downloads": 890,
52+
"version": "0.7.2",
53+
"release_date": "2025-11-04T23:24:41"
54+
}
55+
]
56+
},
57+
"fair-sense-ai": {
58+
"name": "fair-sense-ai",
59+
"repo_id": "VectorInstitute/fair-sense-ai",
60+
"snapshots": [
61+
{
62+
"repo_id": "VectorInstitute/fair-sense-ai",
63+
"name": "fair-sense-ai",
64+
"package_name": "fair-sense-ai",
65+
"timestamp": "2025-11-26T20:49:03.496054+00:00",
66+
"downloads_last_day": 1,
67+
"downloads_last_week": 10,
68+
"downloads_last_month": 57,
69+
"total_downloads": 801,
70+
"version": "1.0.11",
71+
"release_date": "2025-06-21T18:46:37"
72+
}
73+
]
74+
},
75+
"fl4health": {
76+
"name": "fl4health",
77+
"repo_id": "VectorInstitute/FL4Health",
78+
"snapshots": [
79+
{
80+
"repo_id": "VectorInstitute/FL4Health",
81+
"name": "fl4health",
82+
"package_name": "fl4health",
83+
"timestamp": "2025-11-26T20:49:04.672537+00:00",
84+
"downloads_last_day": 1,
85+
"downloads_last_week": 62,
86+
"downloads_last_month": 147,
87+
"total_downloads": 1220,
88+
"version": "0.4.0",
89+
"release_date": "2025-07-15T20:39:30"
90+
}
91+
]
92+
}
93+
},
94+
"last_updated": "2025-11-26T20:49:04.672537+00:00"
95+
}

repositories/cyclops.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ public_datasets:
2424
type: tool
2525
year: 2024
2626
github_url: https://github.com/VectorInstitute/cyclops
27+
package_name: pycyclops

repositories/fair-sense-ai.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ implementations:
1919
type: tool
2020
year: 2025
2121
github_url: https://github.com/VectorInstitute/fair-sense-ai
22+
package_name: fair-sense-ai

repositories/fed-rag.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ implementations:
99
type: tool
1010
year: 2025
1111
github_url: https://github.com/VectorInstitute/fed-rag
12+
package_name: fed-rag
1213
paper_url: https://doi.org/10.5281/zenodo.15092361
1314
bibtex: fajardo2025fedrag

repositories/fl4health.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ implementations:
4141
type: tool
4242
year: 2024
4343
github_url: https://github.com/VectorInstitute/fl4health
44+
package_name: fl4health

repositories/vector-inference.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ description: "Efficient LLM inference on Slurm clusters using vLLM"
44
type: tool
55
year: 2024
66
github_url: https://github.com/VectorInstitute/vector-inference
7+
package_name: vec-inf
78
implementations:
89
- "CLI"
910
- "Python API"

0 commit comments

Comments
 (0)