MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / __init__

Method __init__

bindings/python/graphlite/graphlite.py:40–46  ·  view source on GitHub ↗
(self, data: Dict[str, Any])

Source from the content-addressed store, hash-verified

38 """Query result wrapper with convenient access methods"""
39
40 def __init__(self, data: Dict[str, Any]):
41 self._data = data
42 self.variables = data.get("variables", [])
43 # Flatten rows from nested structure
44 raw_rows = data.get("rows", [])
45 self.rows = [self._flatten_row(row) for row in raw_rows]
46 self.row_count = len(self.rows)
47
48 def _flatten_row(self, row: Dict[str, Any]) -> Dict[str, Any]:
49 """Flatten a row from nested value structure to simple dict"""

Callers

nothing calls this directly

Calls 2

_flatten_rowMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected