Skip to content

Commit d5a4eb9

Browse files
authored
Merge pull request #37 from structured-world/feat/#29-schema-api-create-label
feat(client,adapters,demo): schema DDL API, full-text search, Colab notebooks
2 parents d477417 + 565a74c commit d5a4eb9

24 files changed

Lines changed: 3122 additions & 78 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ env/
1818

1919
# Version files generated by hatch-vcs
2020
coordinode/_version.py
21+
coordinode/coordinode/_version.py
2122
langchain-coordinode/langchain_coordinode/_version.py
2223
llama-index-coordinode/llama_index/graph_stores/coordinode/_version.py
24+
25+
# Local dev / arch docs — not part of the SDK
2326
GAPS.md
2427
CLAUDE.md
28+
DEVLOG*.md
29+
30+
**/.ipynb_checkpoints/

coordinode-embedded/python/coordinode_embedded/_coordinode_embedded.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class LocalClient:
2323
"""
2424

2525
def __init__(self, path: str) -> None: ...
26-
2726
def cypher(
2827
self,
2928
query: str,
@@ -48,6 +47,6 @@ class LocalClient:
4847
"""
4948
...
5049

51-
def __enter__(self) -> "LocalClient": ...
50+
def __enter__(self) -> LocalClient: ...
5251
def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> bool: ...
5352
def __repr__(self) -> str: ...

coordinode-rs

Submodule coordinode-rs updated 109 files

coordinode/coordinode/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@
2323
CoordinodeClient,
2424
EdgeResult,
2525
EdgeTypeInfo,
26+
HybridResult,
2627
LabelInfo,
2728
NodeResult,
2829
PropertyDefinitionInfo,
30+
TextIndexInfo,
31+
TextResult,
2932
TraverseResult,
3033
VectorResult,
3134
)
@@ -40,8 +43,11 @@
4043
"NodeResult",
4144
"EdgeResult",
4245
"VectorResult",
46+
"TextResult",
47+
"HybridResult",
4348
"LabelInfo",
4449
"EdgeTypeInfo",
4550
"PropertyDefinitionInfo",
51+
"TextIndexInfo",
4652
"TraverseResult",
4753
]

coordinode/coordinode/_types.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ def to_property_value(py_val: PyValue) -> Any:
3333
pv.string_value = py_val
3434
elif isinstance(py_val, bytes):
3535
pv.bytes_value = py_val
36-
elif isinstance(py_val, (list, tuple)):
36+
elif isinstance(py_val, list | tuple):
3737
# Homogeneous float list → Vector; mixed/str list → PropertyList.
3838
# bool is a subclass of int, so exclude it explicitly — [True, False] must
3939
# not be serialised as a Vector of 1.0/0.0 but as a PropertyList.
40-
if py_val and all(isinstance(v, (int, float)) and not isinstance(v, bool) for v in py_val):
40+
# list | tuple union syntax is valid in isinstance() for Python ≥3.10 (PEP 604).
41+
# This project targets Python ≥3.11 (pyproject.toml: requires-python = ">=3.11").
42+
if py_val and all(isinstance(v, int | float) and not isinstance(v, bool) for v in py_val):
4143
vec = Vector(values=[float(v) for v in py_val])
4244
pv.vector_value.CopyFrom(vec)
4345
else:

0 commit comments

Comments
 (0)