chatsbom 0.2.4__py3-none-any.whl → 0.2.5__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.
- chatsbom/commands/query.py +6 -6
- chatsbom/commands/status.py +4 -4
- chatsbom/core/repository.py +4 -4
- {chatsbom-0.2.4.dist-info → chatsbom-0.2.5.dist-info}/METADATA +2 -2
- {chatsbom-0.2.4.dist-info → chatsbom-0.2.5.dist-info}/RECORD +7 -7
- {chatsbom-0.2.4.dist-info → chatsbom-0.2.5.dist-info}/WHEEL +0 -0
- {chatsbom-0.2.4.dist-info → chatsbom-0.2.5.dist-info}/entry_points.txt +0 -0
chatsbom/commands/query.py
CHANGED
|
@@ -68,8 +68,8 @@ def main(
|
|
|
68
68
|
|
|
69
69
|
candidate_query = f"""
|
|
70
70
|
SELECT a.name, count() as cnt
|
|
71
|
-
FROM {db_config.artifacts_table}
|
|
72
|
-
JOIN {db_config.repositories_table}
|
|
71
|
+
FROM {db_config.artifacts_table} AS a FINAL
|
|
72
|
+
JOIN {db_config.repositories_table} AS r FINAL ON a.repository_id = r.id
|
|
73
73
|
WHERE a.name ILIKE {{pattern:String}} {lang_filter}
|
|
74
74
|
GROUP BY a.name
|
|
75
75
|
ORDER BY cnt DESC
|
|
@@ -109,8 +109,8 @@ def main(
|
|
|
109
109
|
# Count total results first
|
|
110
110
|
count_query = f"""
|
|
111
111
|
SELECT count()
|
|
112
|
-
FROM {db_config.artifacts_table}
|
|
113
|
-
JOIN {db_config.repositories_table}
|
|
112
|
+
FROM {db_config.artifacts_table} AS a FINAL
|
|
113
|
+
JOIN {db_config.repositories_table} AS r FINAL ON a.repository_id = r.id
|
|
114
114
|
WHERE a.name = {{library:String}} {lang_filter}
|
|
115
115
|
"""
|
|
116
116
|
|
|
@@ -139,8 +139,8 @@ def main(
|
|
|
139
139
|
r.stars,
|
|
140
140
|
a.version,
|
|
141
141
|
r.url
|
|
142
|
-
FROM {db_config.artifacts_table}
|
|
143
|
-
JOIN {db_config.repositories_table}
|
|
142
|
+
FROM {db_config.artifacts_table} AS a FINAL
|
|
143
|
+
JOIN {db_config.repositories_table} AS r FINAL ON a.repository_id = r.id
|
|
144
144
|
WHERE a.name = {{library:String}} {lang_filter}
|
|
145
145
|
ORDER BY r.stars DESC
|
|
146
146
|
LIMIT {{limit:UInt32}}
|
chatsbom/commands/status.py
CHANGED
|
@@ -151,8 +151,8 @@ def main(
|
|
|
151
151
|
# Query count of projects in this language using this framework
|
|
152
152
|
fw_count_query = f"""
|
|
153
153
|
SELECT count(DISTINCT r.id)
|
|
154
|
-
FROM {db_config.repositories_table}
|
|
155
|
-
JOIN {db_config.artifacts_table}
|
|
154
|
+
FROM {db_config.repositories_table} AS r FINAL
|
|
155
|
+
JOIN {db_config.artifacts_table} AS a FINAL ON r.id = a.repository_id
|
|
156
156
|
WHERE r.language = {{lang:String}} AND a.name IN {{pkgs:Array(String)}}
|
|
157
157
|
"""
|
|
158
158
|
fw_count = repo.client.query(
|
|
@@ -202,8 +202,8 @@ def main(
|
|
|
202
202
|
# Query top 3 repositories for this framework
|
|
203
203
|
top_repos_query = f"""
|
|
204
204
|
SELECT DISTINCT r.full_name, r.stars, r.url
|
|
205
|
-
FROM {db_config.repositories_table}
|
|
206
|
-
JOIN {db_config.artifacts_table}
|
|
205
|
+
FROM {db_config.repositories_table} AS r FINAL
|
|
206
|
+
JOIN {db_config.artifacts_table} AS a FINAL ON r.id = a.repository_id
|
|
207
207
|
WHERE r.language = {{lang:String}} AND a.name IN {{pkgs:Array(String)}}
|
|
208
208
|
ORDER BY r.stars DESC
|
|
209
209
|
LIMIT 3
|
chatsbom/core/repository.py
CHANGED
|
@@ -232,8 +232,8 @@ class SBOMRepository:
|
|
|
232
232
|
r.language,
|
|
233
233
|
a.name,
|
|
234
234
|
a.version
|
|
235
|
-
FROM {self.config.artifacts_table}
|
|
236
|
-
JOIN {self.config.repositories_table}
|
|
235
|
+
FROM {self.config.artifacts_table} AS a FINAL
|
|
236
|
+
JOIN {self.config.repositories_table} AS r FINAL ON a.repository_id = r.id
|
|
237
237
|
WHERE a.name LIKE %(pattern)s
|
|
238
238
|
{lang_filter}
|
|
239
239
|
ORDER BY r.stars DESC
|
|
@@ -311,8 +311,8 @@ class SBOMRepository:
|
|
|
311
311
|
a.name,
|
|
312
312
|
count(DISTINCT a.repository_id) as repo_count,
|
|
313
313
|
sum(r.stars) as total_stars
|
|
314
|
-
FROM {self.config.artifacts_table}
|
|
315
|
-
JOIN {self.config.repositories_table}
|
|
314
|
+
FROM {self.config.artifacts_table} AS a FINAL
|
|
315
|
+
JOIN {self.config.repositories_table} AS r FINAL ON a.repository_id = r.id
|
|
316
316
|
WHERE a.name IN ('{packages_str}')
|
|
317
317
|
GROUP BY a.name
|
|
318
318
|
ORDER BY repo_count DESC
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chatsbom
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: ChatSBOM - Talk to your Supply Chain. Chat with SBOMs.
|
|
5
5
|
Requires-Python: >=3.12
|
|
6
6
|
Requires-Dist: claude-agent-sdk>=0.1.0
|
|
@@ -64,7 +64,7 @@ Run commands directly with `uvx`:
|
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
66
|
# 1. Collect repository links from GitHub (e.g., top Go repos)
|
|
67
|
-
uvx chatsbom collect --language go --min-stars
|
|
67
|
+
uvx chatsbom collect --language go --min-stars 10000
|
|
68
68
|
|
|
69
69
|
# 2. Download dependency files
|
|
70
70
|
uvx chatsbom download --language go
|
|
@@ -6,19 +6,19 @@ chatsbom/commands/collect.py,sha256=ApweQztO889o4X4lBrxlIwdYorDUSiE01M4-XMO0HUM,
|
|
|
6
6
|
chatsbom/commands/convert.py,sha256=etc6s_tT4VAvjOCZs8dnHppbTYEeAHI6kHJikkUWD64,8249
|
|
7
7
|
chatsbom/commands/download.py,sha256=I9TwEXO1zrh9-DwvUUMh4iZ1W5ZCXbtE4jcJiK2KqnY,10218
|
|
8
8
|
chatsbom/commands/index.py,sha256=DlK5FtwOFoJqy9gA6mYvfuVQLL9S15KRrH7_Qw7l0Fk,10633
|
|
9
|
-
chatsbom/commands/query.py,sha256=
|
|
10
|
-
chatsbom/commands/status.py,sha256=
|
|
9
|
+
chatsbom/commands/query.py,sha256=bIlz4vXClbcOkoHCLnjqmfcXpMrDzEPGNhmltZe5SHk,5709
|
|
10
|
+
chatsbom/commands/status.py,sha256=AsesBz3F_Mz30n3By2ZMQ0P1kUJPEJkyBHqh3mx1qFA,8553
|
|
11
11
|
chatsbom/core/__init__.py,sha256=x8qFrlBTgFn7TkmBN11ysPCUzRWBY350c5AN4u-3dWE,17
|
|
12
12
|
chatsbom/core/clickhouse.py,sha256=sw4gWiaC2BE4QJlVWDsoDULKFB6YslB0W1FM630IY94,3530
|
|
13
13
|
chatsbom/core/client.py,sha256=GSnOOAxoSUKU1pLXPX4W3cM5G4Iv7fQnknW-YkcX43Q,1400
|
|
14
14
|
chatsbom/core/config.py,sha256=K4vDe387iVwwMY9aTDbDLlUPVOHCKLcA5ZMK000MQgk,3992
|
|
15
|
-
chatsbom/core/repository.py,sha256=
|
|
15
|
+
chatsbom/core/repository.py,sha256=0LqBwlal5PxkhnAcTwtP0eLIMNKCjAYQNKIybjUTAPs,9837
|
|
16
16
|
chatsbom/core/schema.py,sha256=oZUNNjS3UerZtIMo9-KOL-2E3XwS8FT9JNQStWq4tYE,1267
|
|
17
17
|
chatsbom/core/validation.py,sha256=v4boiht4hK73nuZNYpzLTkZKsNSoFPMUDIX-8sP2E9g,3927
|
|
18
18
|
chatsbom/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
chatsbom/models/framework.py,sha256=Whlsbnn64YwftMifMEMVvhsWADC9uupBV4QN1i1BoNQ,2833
|
|
20
20
|
chatsbom/models/language.py,sha256=RgbBQZfG630uNZ7w-BtB1LZ5B5Q_nEExGrwUadfpRqE,3601
|
|
21
|
-
chatsbom-0.2.
|
|
22
|
-
chatsbom-0.2.
|
|
23
|
-
chatsbom-0.2.
|
|
24
|
-
chatsbom-0.2.
|
|
21
|
+
chatsbom-0.2.5.dist-info/METADATA,sha256=tQ22i_CxWaEONk3OrdqVdlAAcfLbU8DDuEFOrcVPjwA,4115
|
|
22
|
+
chatsbom-0.2.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
23
|
+
chatsbom-0.2.5.dist-info/entry_points.txt,sha256=906Ig6u2FwWk3ftNi4mth03N1NRgP4-B2p9kpppcqWA,51
|
|
24
|
+
chatsbom-0.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|