inputlayer-client-dev 0.1.0.dev921__py3-none-any.whl → 0.1.0.dev932__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.
@@ -963,11 +963,22 @@ class KnowledgeGraph:
963
963
  )
964
964
 
965
965
  async def load(self, path: str, *, mode: str | None = None) -> None:
966
- """Load data from a file."""
967
- cmd = f".load {path}"
968
- if mode:
969
- cmd += f" {mode}"
970
- await self._execute(cmd)
966
+ """Load an IQL file into this knowledge graph.
967
+
968
+ The file is read locally and sent to the server as a single
969
+ multi-statement program, so the load is atomic: the server parses
970
+ every statement before executing any, and rejects the whole
971
+ program on the first error.
972
+
973
+ (Sending ``.load`` over the wire does not work: the server treats
974
+ it as a client-only REPL command and silently ignores it.)
975
+ """
976
+ if mode is not None:
977
+ msg = "load(mode=...) is not supported; --replace/--merge are unimplemented server-side"
978
+ raise NotImplementedError(msg)
979
+ with open(path, encoding="utf-8") as f:
980
+ program = f.read()
981
+ await self._execute(program)
971
982
 
972
983
  async def clear_prefix(self, prefix: str) -> ClearResult:
973
984
  """Clear all relations matching a prefix."""
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: inputlayer-client-dev
3
- Version: 0.1.0.dev921
3
+ Version: 0.1.0.dev932
4
4
  Summary: Python Object-Logic Mapper for InputLayer knowledge graph engine
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
7
7
  Requires-Python: >=3.10
8
8
  Requires-Dist: pydantic<3,>=2.0
9
- Requires-Dist: websockets<15,>=12.0
9
+ Requires-Dist: websockets<16,>=13.0
10
10
  Provides-Extra: all
11
11
  Requires-Dist: langchain-core<2,>=0.3; extra == 'all'
12
12
  Requires-Dist: langgraph<2,>=0.2; extra == 'all'
@@ -14,7 +14,7 @@ inputlayer/derived.py,sha256=ngjuYmKY88ZSnmb4RiTB2bDEr9buzoM15J6NdKqhSNo,4793
14
14
  inputlayer/exceptions.py,sha256=6b2WEkpfLnf02MLyXzXA8ohUqIwXFdo4RDWw46FINH8,2712
15
15
  inputlayer/functions.py,sha256=oQt4KrVuNQE0Kca16xzIpV0ChkmQ28q9PoDECz5Jqyc,10141
16
16
  inputlayer/index.py,sha256=PadO54xqzdmV3Dj-FuAHPYKsn4iC1JkblliZeUm9L2M,1077
17
- inputlayer/knowledge_graph.py,sha256=weT19O1cmCRGwJuQ5myDWGP1xC4T8eRjUbFLEMZlBjY,37365
17
+ inputlayer/knowledge_graph.py,sha256=tyZHce3ItPTxhPw2FR6RQc7qyBAL7QUAjIHrhl3JgUo,37963
18
18
  inputlayer/notifications.py,sha256=Osm3Q18NrTWj0g_KbnY1jWcc50n0qIz-Lojypy5w-bg,3213
19
19
  inputlayer/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  inputlayer/relation.py,sha256=SU0f6ax4ib6H5llOqgLMSVXJVIdwHf5EoSOUv5YIL-g,3727
@@ -48,8 +48,8 @@ inputlayer/migrations/operations.py,sha256=_qiguq0GFcXVZgIJa4vHu7eeKSa5BUh2maDce
48
48
  inputlayer/migrations/recorder.py,sha256=qARvQKL_s84vWTEEuHFAmVPvAZiTYCW4X-HtLIdpnbA,3282
49
49
  inputlayer/migrations/state.py,sha256=BH5_ly9I9bVPn1lvhqS_UWS7NvYg2iCLJrbG50-mwlQ,3695
50
50
  inputlayer/migrations/writer.py,sha256=4EZjKTu10pry-3vVchg36I9aNHs-zavLzJeDbZd2rko,1497
51
- inputlayer_client_dev-0.1.0.dev921.dist-info/METADATA,sha256=j6xsBI7GizHy4JBZes1QFLTzWnwz6VYlAcuuR_mhfDc,19942
52
- inputlayer_client_dev-0.1.0.dev921.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
53
- inputlayer_client_dev-0.1.0.dev921.dist-info/entry_points.txt,sha256=xEo6y283VSdmZ4G_KSh1-Cpl3ZPmgM6x9OLT8VJcrqs,70
54
- inputlayer_client_dev-0.1.0.dev921.dist-info/licenses/LICENSE,sha256=zed5l9sdToIBMxqe_4I7nX1NTIlqxzT_PBO3rj7-ax4,11281
55
- inputlayer_client_dev-0.1.0.dev921.dist-info/RECORD,,
51
+ inputlayer_client_dev-0.1.0.dev932.dist-info/METADATA,sha256=vMC_w8d9ENnwHSkFMOnyb_PV2XQS52PqMJ7TltFStFk,19942
52
+ inputlayer_client_dev-0.1.0.dev932.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
53
+ inputlayer_client_dev-0.1.0.dev932.dist-info/entry_points.txt,sha256=xEo6y283VSdmZ4G_KSh1-Cpl3ZPmgM6x9OLT8VJcrqs,70
54
+ inputlayer_client_dev-0.1.0.dev932.dist-info/licenses/LICENSE,sha256=zed5l9sdToIBMxqe_4I7nX1NTIlqxzT_PBO3rj7-ax4,11281
55
+ inputlayer_client_dev-0.1.0.dev932.dist-info/RECORD,,