sbom-insight 0.1.18__py3-none-any.whl → 0.1.19__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.
- sbom_insight/clickhouse_utils.py +18 -12
- {sbom_insight-0.1.18.dist-info → sbom_insight-0.1.19.dist-info}/METADATA +1 -1
- {sbom_insight-0.1.18.dist-info → sbom_insight-0.1.19.dist-info}/RECORD +5 -5
- {sbom_insight-0.1.18.dist-info → sbom_insight-0.1.19.dist-info}/WHEEL +0 -0
- {sbom_insight-0.1.18.dist-info → sbom_insight-0.1.19.dist-info}/entry_points.txt +0 -0
sbom_insight/clickhouse_utils.py
CHANGED
|
@@ -49,18 +49,24 @@ def check_clickhouse_connection(
|
|
|
49
49
|
f'[bold red]Error:[/] Failed to connect to ClickHouse at '
|
|
50
50
|
f'[cyan]{host}:{port}[/]\n\n'
|
|
51
51
|
f'Details: {e}\n\n'
|
|
52
|
-
'Please ensure:\n'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
|
|
52
|
+
'Please ensure ClickHouse is running:\n\n'
|
|
53
|
+
'[bold]Option 1:[/] Use docker compose\n'
|
|
54
|
+
' [cyan]docker compose up -d[/]\n\n'
|
|
55
|
+
'[bold]Option 2:[/] Use docker run\n'
|
|
56
|
+
' Step 1: Start ClickHouse\n'
|
|
57
|
+
' [cyan]docker run --rm -d --name clickhouse \\\n'
|
|
58
|
+
' -p 8123:8123 -p 9000:9000 \\\n'
|
|
59
|
+
' -v ./database:/var/lib/clickhouse \\\n'
|
|
60
|
+
' clickhouse/clickhouse-server[/]\n\n'
|
|
61
|
+
' Step 2: Create admin and guest users\n'
|
|
62
|
+
' [cyan]docker exec -it clickhouse clickhouse-client -q \\\n'
|
|
63
|
+
" \"CREATE USER admin IDENTIFIED BY 'admin'\"[/]\n"
|
|
64
|
+
' [cyan]docker exec -it clickhouse clickhouse-client -q \\\n'
|
|
65
|
+
" \"CREATE USER guest IDENTIFIED BY 'guest'\"[/]\n"
|
|
66
|
+
' [cyan]docker exec -it clickhouse clickhouse-client -q \\\n'
|
|
67
|
+
" \"GRANT ALL ON *.* TO admin WITH GRANT OPTION\"[/]\n"
|
|
68
|
+
' [cyan]docker exec -it clickhouse clickhouse-client -q \\\n'
|
|
69
|
+
" \"GRANT SELECT ON *.* TO guest\"[/]\n",
|
|
64
70
|
)
|
|
65
71
|
raise typer.Exit(1)
|
|
66
72
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
sbom_insight/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
sbom_insight/__main__.py,sha256=PVTHnDffprZGZTE6cGuuMUKk8A7d0SfkRMHmguSRdsY,755
|
|
3
3
|
sbom_insight/agent.py,sha256=T5mE9ONhLXVQQc1DHH7b0iKsKiRH4O9hyGU8ZhxAiUo,10972
|
|
4
|
-
sbom_insight/clickhouse_utils.py,sha256=
|
|
4
|
+
sbom_insight/clickhouse_utils.py,sha256=HGfHjs6yLrFl57ZoOvlUaVzzqFAbRTZ_-dk7JbHaiI4,3434
|
|
5
5
|
sbom_insight/client.py,sha256=GSnOOAxoSUKU1pLXPX4W3cM5G4Iv7fQnknW-YkcX43Q,1400
|
|
6
6
|
sbom_insight/converter.py,sha256=E6_YYSggRFHyujeYjdWV6ZadVo9W380YtwzD_JTQvwc,8253
|
|
7
7
|
sbom_insight/downloader.py,sha256=cVzb0T2jDN_t567lJ4I3A4arKV6jzz3kDmCLgSpjKJw,10214
|
|
@@ -13,7 +13,7 @@ sbom_insight/summarize.py,sha256=5NloqTaQVUUvdm46d2t7-LClsEV9PaNe9eMtDEtVocw,804
|
|
|
13
13
|
sbom_insight/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
sbom_insight/models/framework.py,sha256=Whlsbnn64YwftMifMEMVvhsWADC9uupBV4QN1i1BoNQ,2833
|
|
15
15
|
sbom_insight/models/language.py,sha256=4YZXU7XSuy2RsyyOvPPJM94uscEsNAjszCayYqB91xw,3605
|
|
16
|
-
sbom_insight-0.1.
|
|
17
|
-
sbom_insight-0.1.
|
|
18
|
-
sbom_insight-0.1.
|
|
19
|
-
sbom_insight-0.1.
|
|
16
|
+
sbom_insight-0.1.19.dist-info/METADATA,sha256=NM2luFJTdEeS9sJVhHrtEUuFvmZqyGiqV-kum1EL2a4,2877
|
|
17
|
+
sbom_insight-0.1.19.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
18
|
+
sbom_insight-0.1.19.dist-info/entry_points.txt,sha256=n61JHr7CMGzQlzAmdigTJSC2_S5M0S3Jgg1am6b0dr4,59
|
|
19
|
+
sbom_insight-0.1.19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|