kgmodule-utils 0.30.1__tar.gz → 0.30.2__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 (54) hide show
  1. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/PKG-INFO +7 -4
  2. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/README.md +6 -3
  3. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/pyproject.toml +1 -1
  4. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/__init__.py +1 -1
  5. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/synthesis/_config.py +7 -6
  6. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/LICENSE +0 -0
  7. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/analysis/__init__.py +0 -0
  8. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/analysis/scores.py +0 -0
  9. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/corpus_embedder.py +0 -0
  10. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/devicepack.py +0 -0
  11. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/embed.py +0 -0
  12. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/embedder.py +0 -0
  13. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/extractor.py +0 -0
  14. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/ingest/__init__.py +0 -0
  15. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/ingest/converters.py +0 -0
  16. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/ingest/derived.py +0 -0
  17. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/ingest/manifest.py +0 -0
  18. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/ingest/pipeline.py +0 -0
  19. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/mcp/__init__.py +0 -0
  20. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/mcp/_names.py +0 -0
  21. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/mcp/cli.py +0 -0
  22. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/mcp/server.py +0 -0
  23. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/module.py +0 -0
  24. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/pipeline.py +0 -0
  25. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/py.typed +0 -0
  26. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/retrieval/__init__.py +0 -0
  27. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/retrieval/hits.py +0 -0
  28. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/semantic.py +0 -0
  29. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/snapshots/__init__.py +0 -0
  30. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/snapshots/manager.py +0 -0
  31. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/snapshots/models.py +0 -0
  32. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/specs.py +0 -0
  33. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/stats.py +0 -0
  34. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/store.py +0 -0
  35. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/synthesis/__init__.py +0 -0
  36. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/synthesis/_anthropic.py +0 -0
  37. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/synthesis/_image.py +0 -0
  38. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/synthesis/_text.py +0 -0
  39. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/synthesis/factory.py +0 -0
  40. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/temporal.py +0 -0
  41. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/validation.py +0 -0
  42. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/vector_backend.py +0 -0
  43. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/viz/__init__.py +0 -0
  44. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/viz/graph_html.py +0 -0
  45. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/viz/theme.py +0 -0
  46. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/viz/tooltip.py +0 -0
  47. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/viz3d/__init__.py +0 -0
  48. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/viz3d/layout.py +0 -0
  49. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/viz3d/organic.py +0 -0
  50. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/viz3d/qt.py +0 -0
  51. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/viz3d/species.py +0 -0
  52. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/worker/__init__.py +0 -0
  53. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/worker/client.py +0 -0
  54. {kgmodule_utils-0.30.1 → kgmodule_utils-0.30.2}/src/kg_utils/worker/ops.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kgmodule-utils
3
- Version: 0.30.1
3
+ Version: 0.30.2
4
4
  Summary: Shared types, graph store, semantic index, and pipeline base for the KGModule SDK
5
5
  License-Expression: Elastic-2.0
6
6
  License-File: LICENSE
@@ -59,7 +59,7 @@ Description-Content-Type: text/markdown
59
59
 
60
60
  [![Python](https://img.shields.io/badge/python-3.12%20%7C%203.13-blue.svg)](https://www.python.org/)
61
61
  [![License: Elastic-2.0](https://img.shields.io/badge/License-Elastic%202.0-blue.svg)](https://www.elastic.co/licensing/elastic-license)
62
- [![Version](https://img.shields.io/badge/version-0.30.1-blue.svg)](https://github.com/Flux-Frontiers/KG_utils/releases)
62
+ [![Version](https://img.shields.io/badge/version-0.30.2-blue.svg)](https://github.com/Flux-Frontiers/KG_utils/releases)
63
63
  [![CI](https://github.com/Flux-Frontiers/KG_utils/actions/workflows/ci.yml/badge.svg)](https://github.com/Flux-Frontiers/KG_utils/actions/workflows/ci.yml)
64
64
  [![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
65
65
  [![DOI](https://img.shields.io/badge/DOI-10.5281%2Fzenodo.21284866-blue.svg)](https://doi.org/10.5281/zenodo.21284866)
@@ -84,6 +84,9 @@ Fleet modules use it in two ways. [PyCodeKG](https://github.com/Flux-Frontiers/p
84
84
 
85
85
  ## Latest News
86
86
 
87
+ - **0.30.2 (2026-11-17)** -- A synthesis key now goes only to its own backend.
88
+ The `omlx` backend no longer sends `OPENAI_API_KEY` to the local oMLX server
89
+ when `VLLM_API_KEY` is unset, and cloud backends no longer get oMLX's key.
87
90
  - **0.30.1 (2026-11-17)** -- The image rewrite prompt asks for an accurate
88
91
  scene: the end of the moment, a person turned into something shown only as
89
92
  what they became, the narrator in the scene, everyone clothed, and no
@@ -888,7 +891,7 @@ If you use kgmodule-utils in research or a project, please cite it:
888
891
 
889
892
  **APA**
890
893
 
891
- > Suchanek, E. G. (2026). *kgmodule-utils: Shared SDK for the KGModule Knowledge-Graph Ecosystem* (Version 0.30.1) [Software]. Flux-Frontiers. https://doi.org/10.5281/zenodo.21284866
894
+ > Suchanek, E. G. (2026). *kgmodule-utils: Shared SDK for the KGModule Knowledge-Graph Ecosystem* (Version 0.30.2) [Software]. Flux-Frontiers. https://doi.org/10.5281/zenodo.21284866
892
895
 
893
896
  **BibTeX**
894
897
 
@@ -896,7 +899,7 @@ If you use kgmodule-utils in research or a project, please cite it:
896
899
  @software{suchanek_kgmodule_utils,
897
900
  author = {Suchanek, Eric G.},
898
901
  title = {{kgmodule-utils}: Shared SDK for the KGModule Knowledge-Graph Ecosystem},
899
- version = {0.30.1},
902
+ version = {0.30.2},
900
903
  year = {2026},
901
904
  publisher = {Flux-Frontiers},
902
905
  url = {https://github.com/Flux-Frontiers/KG_utils},
@@ -1,7 +1,7 @@
1
1
 
2
2
  [![Python](https://img.shields.io/badge/python-3.12%20%7C%203.13-blue.svg)](https://www.python.org/)
3
3
  [![License: Elastic-2.0](https://img.shields.io/badge/License-Elastic%202.0-blue.svg)](https://www.elastic.co/licensing/elastic-license)
4
- [![Version](https://img.shields.io/badge/version-0.30.1-blue.svg)](https://github.com/Flux-Frontiers/KG_utils/releases)
4
+ [![Version](https://img.shields.io/badge/version-0.30.2-blue.svg)](https://github.com/Flux-Frontiers/KG_utils/releases)
5
5
  [![CI](https://github.com/Flux-Frontiers/KG_utils/actions/workflows/ci.yml/badge.svg)](https://github.com/Flux-Frontiers/KG_utils/actions/workflows/ci.yml)
6
6
  [![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
7
7
  [![DOI](https://img.shields.io/badge/DOI-10.5281%2Fzenodo.21284866-blue.svg)](https://doi.org/10.5281/zenodo.21284866)
@@ -26,6 +26,9 @@ Fleet modules use it in two ways. [PyCodeKG](https://github.com/Flux-Frontiers/p
26
26
 
27
27
  ## Latest News
28
28
 
29
+ - **0.30.2 (2026-11-17)** -- A synthesis key now goes only to its own backend.
30
+ The `omlx` backend no longer sends `OPENAI_API_KEY` to the local oMLX server
31
+ when `VLLM_API_KEY` is unset, and cloud backends no longer get oMLX's key.
29
32
  - **0.30.1 (2026-11-17)** -- The image rewrite prompt asks for an accurate
30
33
  scene: the end of the moment, a person turned into something shown only as
31
34
  what they became, the narrator in the scene, everyone clothed, and no
@@ -830,7 +833,7 @@ If you use kgmodule-utils in research or a project, please cite it:
830
833
 
831
834
  **APA**
832
835
 
833
- > Suchanek, E. G. (2026). *kgmodule-utils: Shared SDK for the KGModule Knowledge-Graph Ecosystem* (Version 0.30.1) [Software]. Flux-Frontiers. https://doi.org/10.5281/zenodo.21284866
836
+ > Suchanek, E. G. (2026). *kgmodule-utils: Shared SDK for the KGModule Knowledge-Graph Ecosystem* (Version 0.30.2) [Software]. Flux-Frontiers. https://doi.org/10.5281/zenodo.21284866
834
837
 
835
838
  **BibTeX**
836
839
 
@@ -838,7 +841,7 @@ If you use kgmodule-utils in research or a project, please cite it:
838
841
  @software{suchanek_kgmodule_utils,
839
842
  author = {Suchanek, Eric G.},
840
843
  title = {{kgmodule-utils}: Shared SDK for the KGModule Knowledge-Graph Ecosystem},
841
- version = {0.30.1},
844
+ version = {0.30.2},
842
845
  year = {2026},
843
846
  publisher = {Flux-Frontiers},
844
847
  url = {https://github.com/Flux-Frontiers/KG_utils},
@@ -9,7 +9,7 @@ build-backend = "poetry.core.masonry.api"
9
9
 
10
10
  [project]
11
11
  name = "kgmodule-utils"
12
- version = "0.30.1"
12
+ version = "0.30.2"
13
13
  description = "Shared types, graph store, semantic index, and pipeline base for the KGModule SDK"
14
14
  readme = "README.md"
15
15
  license = "Elastic-2.0"
@@ -72,4 +72,4 @@ The core install is stdlib-only; everything heavier is opt-in.
72
72
  pip install 'kgmodule-utils[synthesis-mflux]' # + mflux (Apple Silicon local gen)
73
73
  """
74
74
 
75
- __version__ = "0.30.1"
75
+ __version__ = "0.30.2"
@@ -130,12 +130,13 @@ def text_config_from_env() -> TextConfig:
130
130
  backend = TextBackend.OMLX
131
131
 
132
132
  endpoint = os.environ.get("SYNTH_ENDPOINT") or os.environ.get("VLLM_ENDPOINT_URL") or ""
133
- api_key = (
134
- os.environ.get("SYNTH_API_KEY")
135
- or os.environ.get("VLLM_API_KEY")
136
- or os.environ.get("OPENAI_API_KEY")
137
- or ""
138
- )
133
+ # Each key goes only to its own backend: VLLM_API_KEY is oMLX's and
134
+ # OPENAI_API_KEY is OpenAI's, so neither reaches another server.
135
+ api_key = os.environ.get("SYNTH_API_KEY") or ""
136
+ if not api_key and backend is TextBackend.OMLX:
137
+ api_key = os.environ.get("VLLM_API_KEY") or ""
138
+ elif not api_key and backend is TextBackend.OPENAI:
139
+ api_key = os.environ.get("OPENAI_API_KEY") or ""
139
140
  if backend == TextBackend.ANTHROPIC:
140
141
  # An OpenAI key is never a Claude key; empty lets the SDK resolve one.
141
142
  api_key = os.environ.get("ANTHROPIC_API_KEY") or ""
File without changes