coordinode 1.0.6__tar.gz → 3.0.0__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 (82) hide show
  1. coordinode-3.0.0/LICENSE +202 -0
  2. coordinode-3.0.0/NOTICE +7 -0
  3. {coordinode-1.0.6 → coordinode-3.0.0}/PKG-INFO +45 -26
  4. {coordinode-1.0.6 → coordinode-3.0.0}/README.md +33 -16
  5. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/__init__.py +17 -1
  6. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/admin/cluster_pb2.py +3 -3
  7. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/admin/cluster_pb2.pyi +3 -3
  8. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/admin/cluster_pb2_grpc.py +4 -4
  9. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/common/pagination_pb2.py +3 -3
  10. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/common/pagination_pb2_grpc.py +1 -1
  11. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/common/types_pb2.py +19 -13
  12. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/common/types_pb2.pyi +30 -2
  13. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/common/types_pb2_grpc.py +1 -1
  14. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/graph/blob_pb2.py +3 -3
  15. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/graph/blob_pb2_grpc.py +4 -4
  16. coordinode-3.0.0/coordinode/_proto/coordinode/v1/graph/graph_pb2.py +85 -0
  17. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/graph/graph_pb2.pyi +22 -4
  18. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/graph/graph_pb2_grpc.py +53 -4
  19. coordinode-3.0.0/coordinode/_proto/coordinode/v1/graph/schema_pb2.py +75 -0
  20. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/graph/schema_pb2.pyi +9 -9
  21. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/graph/schema_pb2_grpc.py +4 -4
  22. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/health/health_pb2.py +3 -3
  23. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/health/health_pb2.pyi +1 -1
  24. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/health/health_pb2_grpc.py +4 -4
  25. coordinode-3.0.0/coordinode/_proto/coordinode/v1/query/cypher_pb2.py +89 -0
  26. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/query/cypher_pb2.pyi +52 -4
  27. coordinode-3.0.0/coordinode/_proto/coordinode/v1/query/cypher_pb2_grpc.py +281 -0
  28. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/query/text_pb2.py +3 -3
  29. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/query/text_pb2.pyi +1 -1
  30. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/query/text_pb2_grpc.py +4 -4
  31. coordinode-3.0.0/coordinode/_proto/coordinode/v1/query/vector_pb2.py +59 -0
  32. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/query/vector_pb2.pyi +32 -4
  33. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/query/vector_pb2_grpc.py +4 -4
  34. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/replication/cdc_pb2.py +7 -7
  35. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/replication/cdc_pb2.pyi +4 -2
  36. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/replication/cdc_pb2_grpc.py +4 -4
  37. coordinode-3.0.0/coordinode/_proto/coordinode/v1/replication/consistency_pb2.py +46 -0
  38. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/replication/consistency_pb2.pyi +27 -16
  39. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/replication/consistency_pb2_grpc.py +1 -1
  40. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/replication/raft_pb2.py +3 -3
  41. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/replication/raft_pb2_grpc.py +4 -4
  42. coordinode-3.0.0/coordinode/_proto/coordinode/v1/replication/transfer_pb2.py +52 -0
  43. coordinode-3.0.0/coordinode/_proto/coordinode/v1/replication/transfer_pb2.pyi +91 -0
  44. coordinode-3.0.0/coordinode/_proto/coordinode/v1/replication/transfer_pb2_grpc.py +220 -0
  45. coordinode-3.0.0/coordinode/_proto/coordinode/v1/session/session_pb2.py +75 -0
  46. coordinode-3.0.0/coordinode/_proto/coordinode/v1/session/session_pb2.pyi +177 -0
  47. coordinode-3.0.0/coordinode/_proto/coordinode/v1/session/session_pb2_grpc.py +131 -0
  48. coordinode-3.0.0/coordinode/_proto/google/api/__init__.py +0 -0
  49. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/google/api/annotations_pb2.py +3 -3
  50. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/google/api/annotations_pb2_grpc.py +1 -1
  51. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/google/api/http_pb2.py +3 -3
  52. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/google/api/http_pb2.pyi +1 -1
  53. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/google/api/http_pb2_grpc.py +1 -1
  54. coordinode-3.0.0/coordinode/_source.py +199 -0
  55. coordinode-3.0.0/coordinode/_types.py +181 -0
  56. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_version.py +2 -2
  57. coordinode-3.0.0/coordinode/client.py +2634 -0
  58. {coordinode-1.0.6 → coordinode-3.0.0}/pyproject.toml +13 -8
  59. coordinode-1.0.6/coordinode/_proto/coordinode/v1/graph/graph_pb2.py +0 -79
  60. coordinode-1.0.6/coordinode/_proto/coordinode/v1/graph/schema_pb2.py +0 -75
  61. coordinode-1.0.6/coordinode/_proto/coordinode/v1/query/cypher_pb2.py +0 -69
  62. coordinode-1.0.6/coordinode/_proto/coordinode/v1/query/cypher_pb2_grpc.py +0 -145
  63. coordinode-1.0.6/coordinode/_proto/coordinode/v1/query/vector_pb2.py +0 -55
  64. coordinode-1.0.6/coordinode/_proto/coordinode/v1/replication/consistency_pb2.py +0 -44
  65. coordinode-1.0.6/coordinode/_types.py +0 -91
  66. coordinode-1.0.6/coordinode/client.py +0 -1093
  67. {coordinode-1.0.6 → coordinode-3.0.0}/.gitignore +0 -0
  68. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/__init__.py +0 -0
  69. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/__init__.py +0 -0
  70. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/__init__.py +0 -0
  71. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/admin/__init__.py +0 -0
  72. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/common/__init__.py +0 -0
  73. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/common/pagination_pb2.pyi +0 -0
  74. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/graph/__init__.py +0 -0
  75. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/graph/blob_pb2.pyi +0 -0
  76. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/health/__init__.py +0 -0
  77. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/query/__init__.py +0 -0
  78. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/replication/__init__.py +0 -0
  79. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/coordinode/v1/replication/raft_pb2.pyi +0 -0
  80. {coordinode-1.0.6/coordinode/_proto/google → coordinode-3.0.0/coordinode/_proto/coordinode/v1/session}/__init__.py +0 -0
  81. {coordinode-1.0.6/coordinode/_proto/google/api → coordinode-3.0.0/coordinode/_proto/google}/__init__.py +0 -0
  82. {coordinode-1.0.6 → coordinode-3.0.0}/coordinode/_proto/google/api/annotations_pb2.pyi +0 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Dmitry Prudnikov
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,7 @@
1
+ coordinode (Python client for CoordiNode)
2
+ Copyright 2026 Dmitry Prudnikov
3
+
4
+ This product includes software developed by Dmitry Prudnikov and contributors
5
+ (https://github.com/structured-world/coordinode-python).
6
+
7
+ Licensed under the Apache License, Version 2.0; see LICENSE.
@@ -1,12 +1,14 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: coordinode
3
- Version: 1.0.6
3
+ Version: 3.0.0
4
4
  Summary: Python client for CoordiNode — graph + vector + full-text database
5
5
  Project-URL: Homepage, https://github.com/structured-world/coordinode
6
6
  Project-URL: Repository, https://github.com/structured-world/coordinode-python
7
7
  Project-URL: Issues, https://github.com/structured-world/coordinode-python/issues
8
- Author-email: "structured.world" <dev@structured.world>
8
+ Author-email: Dmitry Prudnikov <mail@polaz.com>
9
9
  License: Apache-2.0
10
+ License-File: LICENSE
11
+ License-File: NOTICE
10
12
  Keywords: database,graph,graphrag,grpc,rag,vector
11
13
  Classifier: Development Status :: 3 - Alpha
12
14
  Classifier: Intended Audience :: Developers
@@ -18,14 +20,14 @@ Classifier: Programming Language :: Python :: 3.13
18
20
  Classifier: Topic :: Database
19
21
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
22
  Requires-Python: >=3.11
21
- Requires-Dist: googleapis-common-protos>=1.62
22
- Requires-Dist: grpcio>=1.60
23
- Requires-Dist: protobuf>=4.25
23
+ Requires-Dist: googleapis-common-protos>=1.74.0
24
+ Requires-Dist: grpcio>=1.83.1
25
+ Requires-Dist: protobuf>=7.35.1
24
26
  Provides-Extra: dev
25
- Requires-Dist: grpcio-tools>=1.60; extra == 'dev'
26
- Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
27
- Requires-Dist: pytest>=8; extra == 'dev'
28
- Requires-Dist: ruff>=0.4; extra == 'dev'
27
+ Requires-Dist: grpcio-tools>=1.83.1; extra == 'dev'
28
+ Requires-Dist: pytest-asyncio>=1.4; extra == 'dev'
29
+ Requires-Dist: pytest>=9; extra == 'dev'
30
+ Requires-Dist: ruff>=0.16; extra == 'dev'
29
31
  Description-Content-Type: text/markdown
30
32
 
31
33
  # coordinode
@@ -85,12 +87,14 @@ with CoordinodeClient("localhost:7080") as db:
85
87
  import asyncio
86
88
  from coordinode import AsyncCoordinodeClient
87
89
 
90
+
88
91
  async def main():
89
92
  async with AsyncCoordinodeClient("localhost:7080") as db:
90
93
  rows = await db.cypher("MATCH (n:Concept) RETURN n.name AS name LIMIT 5")
91
94
  for row in rows:
92
95
  print(row["name"])
93
96
 
97
+
94
98
  asyncio.run(main())
95
99
  ```
96
100
 
@@ -158,7 +162,8 @@ db.create_text_index("idx_doc_body", "Doc", "body")
158
162
 
159
163
  # Reciprocal Rank Fusion of text + vector. Projecting `d AS doc_id` returns the
160
164
  # internal node id (an integer) — fetch properties explicitly when needed.
161
- rows = db.cypher("""
165
+ rows = db.cypher(
166
+ """
162
167
  MATCH (d:Doc)
163
168
  WHERE text_match(d, $q) OR d.embedding IS NOT NULL
164
169
  RETURN d AS doc_id,
@@ -168,7 +173,9 @@ rows = db.cypher("""
168
173
  vec_score(d.embedding, $vec)
169
174
  ) AS score
170
175
  ORDER BY score DESC LIMIT 10
171
- """, params={"q": "graph neural network", "vec": [0.1] * 384})
176
+ """,
177
+ params={"q": "graph neural network", "vec": [0.1] * 384},
178
+ )
172
179
  # Full node properties: db.get_node(rows[0]["doc_id"]).
173
180
  ```
174
181
 
@@ -182,10 +189,8 @@ Python side.
182
189
  Promote a nested property to a graph node (and back):
183
190
 
184
191
  ```python
185
- db.cypher("MATCH (a:Article {id: $id}) DETACH DOCUMENT a.body AS (d:Body)",
186
- params={"id": 1})
187
- db.cypher("MATCH (a:Article {id: $id})-[:HAS_BODY]->(d:Body) "
188
- "ATTACH DOCUMENT d INTO a.body", params={"id": 1})
192
+ db.cypher("MATCH (a:Article {id: $id}) DETACH DOCUMENT a.body AS (d:Body)", params={"id": 1})
193
+ db.cypher("MATCH (a:Article {id: $id})-[:HAS_BODY]->(d:Body) ATTACH DOCUMENT d INTO a.body", params={"id": 1})
189
194
  ```
190
195
 
191
196
  ## Consistency Controls
@@ -198,17 +203,33 @@ db.cypher(
198
203
  read_concern="majority",
199
204
  )
200
205
 
201
- # Majority write (required for causal reads)
202
- db.cypher("CREATE (n:Event {t: timestamp()})", write_concern="majority")
206
+ # Writes default to a journaled majority. Weaken it explicitly per write,
207
+ # only for data that may be lost with its leader:
208
+ from coordinode import WriteConcern
203
209
 
204
- # Causal read: see at least state at raft index 42
205
- db.cypher("MATCH (n) RETURN count(n) AS total", after_index=42)
210
+ db.cypher("CREATE (n:Hit {t: timestamp()})", write_concern=1) # leader only
211
+ db.cypher("CREATE (n:Hit {t: timestamp()})", write_concern=WriteConcern(w=1, journal="memory"))
212
+
213
+ # Causal read: see at least the state at raft index 42. The fence is about
214
+ # which replica may answer, so it is the READ concern that has to be majority.
215
+ db.cypher(
216
+ "MATCH (n) RETURN count(n) AS total",
217
+ after_index=42,
218
+ read_concern="majority",
219
+ )
220
+
221
+ # Write only if the node is still at the version you read.
222
+ node = db.get_node(node_id)
223
+ with db.transaction() as tx:
224
+ tx.cypher("MATCH (n) WHERE id(n) = $id SET n.seen = true", params={"id": node_id})
225
+ tx.commit(expect={node.id: node.version}) # ABORTED / REVISION_MISMATCH if it moved
226
+ # tx.commit_ts is when the write landed: at_timestamp=tx.commit_ts reads exactly it.
206
227
  ```
207
228
 
208
229
  Accepted values:
209
230
 
210
- - ``read_concern``: ``local`` (default) · ``majority`` · ``linearizable`` · ``snapshot``
211
- - ``write_concern``: ``w0`` · ``w1`` (default) · ``majority``
231
+ - ``read_concern``: ``local`` (default) · ``majority`` · ``linearizable`` · ``snapshot``. Causal reads (``after_index`` > 0) require ``majority`` here.
232
+ - ``write_concern``: ``"majority"`` (default) · a member count (``1`` leader only, ``0`` fire-and-forget) · ``WriteConcern(w, journal, timeout_ms)`` with ``journal`` one of ``journal`` (default) · ``cache`` · ``memory``. The volatile ``cache`` and ``memory`` states are accepted only with ``w`` of 0 or 1.
212
233
  - ``read_preference``: ``primary`` (default) · ``primary_preferred`` · ``secondary`` · ``secondary_preferred`` · ``nearest``
213
234
 
214
235
  ## Related Packages
@@ -229,11 +250,9 @@ Accepted values:
229
250
 
230
251
  <div align="center">
231
252
 
232
- [![USDT TRC-20](https://raw.githubusercontent.com/structured-world/coordinode-python/main/assets/usdt-qr.svg)](https://github.com/sponsors/structured-world)
233
-
234
- **USDT (TRC-20):** `TFDsezHa1cBkoeZT5q2T49Wp66K8t2DmdA`
253
+ ![USDT TRC-20](https://raw.githubusercontent.com/structured-world/coordinode-python/main/assets/usdt-qr.svg)
235
254
 
236
- [GitHub Sponsors](https://github.com/sponsors/structured-world) · [Open Collective](https://opencollective.com/structured-world)
255
+ **USDT (TRC-20), maintainer's personal wallet:** `TFDsezHa1cBkoeZT5q2T49Wp66K8t2DmdA`
237
256
 
238
257
  </div>
239
258
 
@@ -55,12 +55,14 @@ with CoordinodeClient("localhost:7080") as db:
55
55
  import asyncio
56
56
  from coordinode import AsyncCoordinodeClient
57
57
 
58
+
58
59
  async def main():
59
60
  async with AsyncCoordinodeClient("localhost:7080") as db:
60
61
  rows = await db.cypher("MATCH (n:Concept) RETURN n.name AS name LIMIT 5")
61
62
  for row in rows:
62
63
  print(row["name"])
63
64
 
65
+
64
66
  asyncio.run(main())
65
67
  ```
66
68
 
@@ -128,7 +130,8 @@ db.create_text_index("idx_doc_body", "Doc", "body")
128
130
 
129
131
  # Reciprocal Rank Fusion of text + vector. Projecting `d AS doc_id` returns the
130
132
  # internal node id (an integer) — fetch properties explicitly when needed.
131
- rows = db.cypher("""
133
+ rows = db.cypher(
134
+ """
132
135
  MATCH (d:Doc)
133
136
  WHERE text_match(d, $q) OR d.embedding IS NOT NULL
134
137
  RETURN d AS doc_id,
@@ -138,7 +141,9 @@ rows = db.cypher("""
138
141
  vec_score(d.embedding, $vec)
139
142
  ) AS score
140
143
  ORDER BY score DESC LIMIT 10
141
- """, params={"q": "graph neural network", "vec": [0.1] * 384})
144
+ """,
145
+ params={"q": "graph neural network", "vec": [0.1] * 384},
146
+ )
142
147
  # Full node properties: db.get_node(rows[0]["doc_id"]).
143
148
  ```
144
149
 
@@ -152,10 +157,8 @@ Python side.
152
157
  Promote a nested property to a graph node (and back):
153
158
 
154
159
  ```python
155
- db.cypher("MATCH (a:Article {id: $id}) DETACH DOCUMENT a.body AS (d:Body)",
156
- params={"id": 1})
157
- db.cypher("MATCH (a:Article {id: $id})-[:HAS_BODY]->(d:Body) "
158
- "ATTACH DOCUMENT d INTO a.body", params={"id": 1})
160
+ db.cypher("MATCH (a:Article {id: $id}) DETACH DOCUMENT a.body AS (d:Body)", params={"id": 1})
161
+ db.cypher("MATCH (a:Article {id: $id})-[:HAS_BODY]->(d:Body) ATTACH DOCUMENT d INTO a.body", params={"id": 1})
159
162
  ```
160
163
 
161
164
  ## Consistency Controls
@@ -168,17 +171,33 @@ db.cypher(
168
171
  read_concern="majority",
169
172
  )
170
173
 
171
- # Majority write (required for causal reads)
172
- db.cypher("CREATE (n:Event {t: timestamp()})", write_concern="majority")
174
+ # Writes default to a journaled majority. Weaken it explicitly per write,
175
+ # only for data that may be lost with its leader:
176
+ from coordinode import WriteConcern
173
177
 
174
- # Causal read: see at least state at raft index 42
175
- db.cypher("MATCH (n) RETURN count(n) AS total", after_index=42)
178
+ db.cypher("CREATE (n:Hit {t: timestamp()})", write_concern=1) # leader only
179
+ db.cypher("CREATE (n:Hit {t: timestamp()})", write_concern=WriteConcern(w=1, journal="memory"))
180
+
181
+ # Causal read: see at least the state at raft index 42. The fence is about
182
+ # which replica may answer, so it is the READ concern that has to be majority.
183
+ db.cypher(
184
+ "MATCH (n) RETURN count(n) AS total",
185
+ after_index=42,
186
+ read_concern="majority",
187
+ )
188
+
189
+ # Write only if the node is still at the version you read.
190
+ node = db.get_node(node_id)
191
+ with db.transaction() as tx:
192
+ tx.cypher("MATCH (n) WHERE id(n) = $id SET n.seen = true", params={"id": node_id})
193
+ tx.commit(expect={node.id: node.version}) # ABORTED / REVISION_MISMATCH if it moved
194
+ # tx.commit_ts is when the write landed: at_timestamp=tx.commit_ts reads exactly it.
176
195
  ```
177
196
 
178
197
  Accepted values:
179
198
 
180
- - ``read_concern``: ``local`` (default) · ``majority`` · ``linearizable`` · ``snapshot``
181
- - ``write_concern``: ``w0`` · ``w1`` (default) · ``majority``
199
+ - ``read_concern``: ``local`` (default) · ``majority`` · ``linearizable`` · ``snapshot``. Causal reads (``after_index`` > 0) require ``majority`` here.
200
+ - ``write_concern``: ``"majority"`` (default) · a member count (``1`` leader only, ``0`` fire-and-forget) · ``WriteConcern(w, journal, timeout_ms)`` with ``journal`` one of ``journal`` (default) · ``cache`` · ``memory``. The volatile ``cache`` and ``memory`` states are accepted only with ``w`` of 0 or 1.
182
201
  - ``read_preference``: ``primary`` (default) · ``primary_preferred`` · ``secondary`` · ``secondary_preferred`` · ``nearest``
183
202
 
184
203
  ## Related Packages
@@ -199,11 +218,9 @@ Accepted values:
199
218
 
200
219
  <div align="center">
201
220
 
202
- [![USDT TRC-20](https://raw.githubusercontent.com/structured-world/coordinode-python/main/assets/usdt-qr.svg)](https://github.com/sponsors/structured-world)
203
-
204
- **USDT (TRC-20):** `TFDsezHa1cBkoeZT5q2T49Wp66K8t2DmdA`
221
+ ![USDT TRC-20](https://raw.githubusercontent.com/structured-world/coordinode-python/main/assets/usdt-qr.svg)
205
222
 
206
- [GitHub Sponsors](https://github.com/sponsors/structured-world) · [Open Collective](https://opencollective.com/structured-world)
223
+ **USDT (TRC-20), maintainer's personal wallet:** `TFDsezHa1cBkoeZT5q2T49Wp66K8t2DmdA`
207
224
 
208
225
  </div>
209
226
 
@@ -1,5 +1,5 @@
1
1
  """
2
- CoordiNode Python SDK — graph + vector + full-text in one query.
2
+ CoordiNode Python SDK: graph + vector + full-text in one query.
3
3
 
4
4
  Quick start::
5
5
 
@@ -18,8 +18,10 @@ Async::
18
18
  result = await db.cypher("MATCH (n) RETURN count(n) AS total")
19
19
  """
20
20
 
21
+ from coordinode._types import MultiVector, Path
21
22
  from coordinode.client import (
22
23
  AsyncCoordinodeClient,
24
+ AsyncTransaction,
23
25
  CoordinodeClient,
24
26
  EdgeResult,
25
27
  EdgeTypeInfo,
@@ -28,8 +30,10 @@ from coordinode.client import (
28
30
  PropertyDefinitionInfo,
29
31
  TextIndexInfo,
30
32
  TextResult,
33
+ Transaction,
31
34
  TraverseResult,
32
35
  VectorResult,
36
+ WriteConcern,
33
37
  )
34
38
 
35
39
  try:
@@ -39,6 +43,18 @@ except ImportError:
39
43
  __all__ = [
40
44
  "CoordinodeClient",
41
45
  "AsyncCoordinodeClient",
46
+ # Handles for a group of statements that commits or rolls back as one.
47
+ # Exported for type annotations; both come from a client, never built
48
+ # directly, since only the server can hand out the transaction id.
49
+ "Transaction",
50
+ "AsyncTransaction",
51
+ # Values whose wire type only a tag can carry: a plain nested list encodes
52
+ # as a list and a plain dict as a map, so sending either of these types
53
+ # requires the constructor, not just the shape.
54
+ "MultiVector",
55
+ "Path",
56
+ # How a write is acknowledged: member count or majority, and how durably.
57
+ "WriteConcern",
42
58
  "NodeResult",
43
59
  "EdgeResult",
44
60
  "VectorResult",
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: coordinode/v1/admin/cluster.proto
5
- # Protobuf Python Version: 6.31.1
5
+ # Protobuf Python Version: 7.35.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,8 +11,8 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 31,
14
+ 7,
15
+ 35,
16
16
  1,
17
17
  '',
18
18
  'coordinode/v1/admin/cluster.proto'
@@ -81,7 +81,7 @@ class JoinNodeRequest(_message.Message):
81
81
  node_id: int
82
82
  address: str
83
83
  pre_seeded: bool
84
- def __init__(self, node_id: _Optional[int] = ..., address: _Optional[str] = ..., pre_seeded: bool = ...) -> None: ...
84
+ def __init__(self, node_id: _Optional[int] = ..., address: _Optional[str] = ..., pre_seeded: _Optional[bool] = ...) -> None: ...
85
85
 
86
86
  class JoinNodeResponse(_message.Message):
87
87
  __slots__ = ("node_id", "status")
@@ -137,7 +137,7 @@ class DecommissionNodeRequest(_message.Message):
137
137
  pruning: bool
138
138
  force: bool
139
139
  skip_confirmation: bool
140
- def __init__(self, node_id: _Optional[int] = ..., pruning: bool = ..., force: bool = ..., skip_confirmation: bool = ...) -> None: ...
140
+ def __init__(self, node_id: _Optional[int] = ..., pruning: _Optional[bool] = ..., force: _Optional[bool] = ..., skip_confirmation: _Optional[bool] = ...) -> None: ...
141
141
 
142
142
  class DecommissionNodeResponse(_message.Message):
143
143
  __slots__ = ("node_id", "message", "operator_cleanup_required")
@@ -147,4 +147,4 @@ class DecommissionNodeResponse(_message.Message):
147
147
  node_id: int
148
148
  message: str
149
149
  operator_cleanup_required: bool
150
- def __init__(self, node_id: _Optional[int] = ..., message: _Optional[str] = ..., operator_cleanup_required: bool = ...) -> None: ...
150
+ def __init__(self, node_id: _Optional[int] = ..., message: _Optional[str] = ..., operator_cleanup_required: _Optional[bool] = ...) -> None: ...
@@ -5,7 +5,7 @@ import warnings
5
5
 
6
6
  from coordinode._proto.coordinode.v1.admin import cluster_pb2 as coordinode_dot_v1_dot_admin_dot_cluster__pb2
7
7
 
8
- GRPC_GENERATED_VERSION = '1.80.0'
8
+ GRPC_GENERATED_VERSION = '1.83.1'
9
9
  GRPC_VERSION = grpc.__version__
10
10
  _version_not_supported = False
11
11
 
@@ -25,7 +25,7 @@ if _version_not_supported:
25
25
  )
26
26
 
27
27
 
28
- class ClusterServiceStub(object):
28
+ class ClusterServiceStub:
29
29
  """Cluster management operations.
30
30
  """
31
31
 
@@ -67,7 +67,7 @@ class ClusterServiceStub(object):
67
67
  _registered_method=True)
68
68
 
69
69
 
70
- class ClusterServiceServicer(object):
70
+ class ClusterServiceServicer:
71
71
  """Cluster management operations.
72
72
  """
73
73
 
@@ -188,7 +188,7 @@ def add_ClusterServiceServicer_to_server(servicer, server):
188
188
 
189
189
 
190
190
  # This class is part of an EXPERIMENTAL API.
191
- class ClusterService(object):
191
+ class ClusterService:
192
192
  """Cluster management operations.
193
193
  """
194
194
 
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: coordinode/v1/common/pagination.proto
5
- # Protobuf Python Version: 6.31.1
5
+ # Protobuf Python Version: 7.35.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,8 +11,8 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 31,
14
+ 7,
15
+ 35,
16
16
  1,
17
17
  '',
18
18
  'coordinode/v1/common/pagination.proto'
@@ -4,7 +4,7 @@ import grpc
4
4
  import warnings
5
5
 
6
6
 
7
- GRPC_GENERATED_VERSION = '1.80.0'
7
+ GRPC_GENERATED_VERSION = '1.83.1'
8
8
  GRPC_VERSION = grpc.__version__
9
9
  _version_not_supported = False
10
10