chatsbom 0.2.5__tar.gz → 0.2.6__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 (44) hide show
  1. {chatsbom-0.2.5 → chatsbom-0.2.6}/PKG-INFO +1 -1
  2. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/commands/chat.py +9 -2
  3. {chatsbom-0.2.5 → chatsbom-0.2.6}/pyproject.toml +1 -1
  4. {chatsbom-0.2.5 → chatsbom-0.2.6}/uv.lock +1 -1
  5. {chatsbom-0.2.5 → chatsbom-0.2.6}/.env.example +0 -0
  6. {chatsbom-0.2.5 → chatsbom-0.2.6}/.github/workflows/release.yaml +0 -0
  7. {chatsbom-0.2.5 → chatsbom-0.2.6}/.github/workflows/weekly.yml +0 -0
  8. {chatsbom-0.2.5 → chatsbom-0.2.6}/.gitignore +0 -0
  9. {chatsbom-0.2.5 → chatsbom-0.2.6}/.pre-commit-config.yaml +0 -0
  10. {chatsbom-0.2.5 → chatsbom-0.2.6}/.python-version +0 -0
  11. {chatsbom-0.2.5 → chatsbom-0.2.6}/README.md +0 -0
  12. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/__init__.py +0 -0
  13. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/__main__.py +0 -0
  14. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/commands/__init__.py +0 -0
  15. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/commands/collect.py +0 -0
  16. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/commands/convert.py +0 -0
  17. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/commands/download.py +0 -0
  18. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/commands/index.py +0 -0
  19. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/commands/query.py +0 -0
  20. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/commands/status.py +0 -0
  21. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/core/__init__.py +0 -0
  22. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/core/clickhouse.py +0 -0
  23. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/core/client.py +0 -0
  24. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/core/config.py +0 -0
  25. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/core/repository.py +0 -0
  26. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/core/schema.py +0 -0
  27. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/core/validation.py +0 -0
  28. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/models/__init__.py +0 -0
  29. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/models/framework.py +0 -0
  30. {chatsbom-0.2.5 → chatsbom-0.2.6}/chatsbom/models/language.py +0 -0
  31. {chatsbom-0.2.5 → chatsbom-0.2.6}/config/users.d/admin.xml +0 -0
  32. {chatsbom-0.2.5 → chatsbom-0.2.6}/config/users.d/guest.xml +0 -0
  33. {chatsbom-0.2.5 → chatsbom-0.2.6}/docker-compose.yaml +0 -0
  34. {chatsbom-0.2.5 → chatsbom-0.2.6}/figures/demo.gif +0 -0
  35. {chatsbom-0.2.5 → chatsbom-0.2.6}/figures/use-cases/gin/01.png +0 -0
  36. {chatsbom-0.2.5 → chatsbom-0.2.6}/figures/use-cases/gin/02.png +0 -0
  37. {chatsbom-0.2.5 → chatsbom-0.2.6}/start.sh +0 -0
  38. {chatsbom-0.2.5 → chatsbom-0.2.6}/tests/client_test.py +0 -0
  39. {chatsbom-0.2.5 → chatsbom-0.2.6}/tests/collect_test.py +0 -0
  40. {chatsbom-0.2.5 → chatsbom-0.2.6}/tests/convert_sbom_test.py +0 -0
  41. {chatsbom-0.2.5 → chatsbom-0.2.6}/tests/download_test.py +0 -0
  42. {chatsbom-0.2.5 → chatsbom-0.2.6}/tests/framework_test.py +0 -0
  43. {chatsbom-0.2.5 → chatsbom-0.2.6}/tests/index_test.py +0 -0
  44. {chatsbom-0.2.5 → chatsbom-0.2.6}/tests/language_test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chatsbom
3
- Version: 0.2.5
3
+ Version: 0.2.6
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
@@ -66,6 +66,11 @@ class ClickHouseConfig:
66
66
  'CLICKHOUSE_PASSWORD', 'guest',
67
67
  ),
68
68
  )
69
+ database: str = field(
70
+ default_factory=lambda: os.getenv(
71
+ 'CLICKHOUSE_DATABASE', 'chatsbom',
72
+ ),
73
+ )
69
74
 
70
75
  def to_env(self) -> dict[str, str]:
71
76
  return {
@@ -73,6 +78,7 @@ class ClickHouseConfig:
73
78
  'CLICKHOUSE_PORT': self.port,
74
79
  'CLICKHOUSE_USER': self.user,
75
80
  'CLICKHOUSE_PASSWORD': self.password,
81
+ 'CLICKHOUSE_DATABASE': self.database,
76
82
  'CLICKHOUSE_ROLE': '',
77
83
  'CLICKHOUSE_SECURE': 'false',
78
84
  'CLICKHOUSE_VERIFY': 'false',
@@ -265,6 +271,7 @@ def main(
265
271
  port: str = typer.Option('8123', envvar='CLICKHOUSE_PORT'),
266
272
  user: str = typer.Option('guest', envvar='CLICKHOUSE_USER'),
267
273
  password: str = typer.Option('guest', envvar='CLICKHOUSE_PASSWORD'),
274
+ database: str = typer.Option('chatsbom', envvar='CLICKHOUSE_DATABASE'),
268
275
  ):
269
276
  """Start an AI conversation about your SBOM data."""
270
277
  from rich.console import Console
@@ -291,7 +298,7 @@ def main(
291
298
  from chatsbom.core.clickhouse import check_clickhouse_connection
292
299
  check_clickhouse_connection(
293
300
  host=host, port=int(port), user=user, password=password,
294
- database='chatsbom', console=console, require_database=True,
301
+ database=database, console=console, require_database=True,
295
302
  )
296
303
 
297
- ChatSBOMApp(ClickHouseConfig(host, port, user, password)).run()
304
+ ChatSBOMApp(ClickHouseConfig(host, port, user, password, database)).run()
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "chatsbom"
7
- version = "0.2.5"
7
+ version = "0.2.6"
8
8
  description = "ChatSBOM - Talk to your Supply Chain. Chat with SBOMs."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -179,7 +179,7 @@ wheels = [
179
179
 
180
180
  [[package]]
181
181
  name = "chatsbom"
182
- version = "0.2.4"
182
+ version = "0.2.5"
183
183
  source = { editable = "." }
184
184
  dependencies = [
185
185
  { name = "claude-agent-sdk" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes