maggraph 0.2.0__tar.gz → 0.2.5__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.
- {maggraph-0.2.0 → maggraph-0.2.5}/Cargo.lock +16 -18
- {maggraph-0.2.0 → maggraph-0.2.5}/Cargo.toml +3 -3
- {maggraph-0.2.0 → maggraph-0.2.5}/PKG-INFO +2 -1
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/Cargo.toml +1 -1
- maggraph-0.2.5/maggraph/__init__.py +53 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/pyproject.toml +2 -1
- maggraph-0.2.0/maggraph/__init__.py +0 -31
- {maggraph-0.2.0 → maggraph-0.2.5}/README.md +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/__init__.pyi +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/benches/traversal.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/py.typed +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/agent/mod.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/config/mod.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/config/schema.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/error.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/graph.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/index.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/lakehouse/cache.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/lakehouse/content.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/lakehouse/mod.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/lakehouse/resolver.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/lakehouse/uri.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/lib.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/memory.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/node/frontmatter.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/node/mod.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/python/mod.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/query.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/recall.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/security.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/sync/engine.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/sync/lock.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/sync/mod.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/sync/policy.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/sync/repo.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/ui/api.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/ui/assets/app.js +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/ui/assets/index.html +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/ui/assets/style.css +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/ui/mod.rs +0 -0
- {maggraph-0.2.0 → maggraph-0.2.5}/maggraph/src/wikilink.rs +0 -0
|
@@ -839,7 +839,7 @@ checksum = "113b30b4cd05f7c06868fdb2854f66a7b9fece9a48425351cd532e810d74024f"
|
|
|
839
839
|
|
|
840
840
|
[[package]]
|
|
841
841
|
name = "maggraph"
|
|
842
|
-
version = "0.2.
|
|
842
|
+
version = "0.2.5"
|
|
843
843
|
dependencies = [
|
|
844
844
|
"axum",
|
|
845
845
|
"chrono",
|
|
@@ -862,7 +862,7 @@ dependencies = [
|
|
|
862
862
|
|
|
863
863
|
[[package]]
|
|
864
864
|
name = "maggraph-cli"
|
|
865
|
-
version = "0.2.
|
|
865
|
+
version = "0.2.5"
|
|
866
866
|
dependencies = [
|
|
867
867
|
"assert_cmd",
|
|
868
868
|
"axum",
|
|
@@ -1047,11 +1047,10 @@ dependencies = [
|
|
|
1047
1047
|
|
|
1048
1048
|
[[package]]
|
|
1049
1049
|
name = "pyo3"
|
|
1050
|
-
version = "0.
|
|
1050
|
+
version = "0.27.2"
|
|
1051
1051
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1052
|
-
checksum = "
|
|
1052
|
+
checksum = "ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d"
|
|
1053
1053
|
dependencies = [
|
|
1054
|
-
"cfg-if",
|
|
1055
1054
|
"indoc",
|
|
1056
1055
|
"libc",
|
|
1057
1056
|
"memoffset",
|
|
@@ -1065,9 +1064,9 @@ dependencies = [
|
|
|
1065
1064
|
|
|
1066
1065
|
[[package]]
|
|
1067
1066
|
name = "pyo3-async-runtimes"
|
|
1068
|
-
version = "0.
|
|
1067
|
+
version = "0.27.0"
|
|
1069
1068
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1070
|
-
checksum = "
|
|
1069
|
+
checksum = "57ddb5b570751e93cc6777e81fee8087e59cd53b5043292f2a6d59d5bd80fdfd"
|
|
1071
1070
|
dependencies = [
|
|
1072
1071
|
"futures",
|
|
1073
1072
|
"once_cell",
|
|
@@ -1078,19 +1077,18 @@ dependencies = [
|
|
|
1078
1077
|
|
|
1079
1078
|
[[package]]
|
|
1080
1079
|
name = "pyo3-build-config"
|
|
1081
|
-
version = "0.
|
|
1080
|
+
version = "0.27.2"
|
|
1082
1081
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1083
|
-
checksum = "
|
|
1082
|
+
checksum = "b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6"
|
|
1084
1083
|
dependencies = [
|
|
1085
|
-
"once_cell",
|
|
1086
1084
|
"target-lexicon",
|
|
1087
1085
|
]
|
|
1088
1086
|
|
|
1089
1087
|
[[package]]
|
|
1090
1088
|
name = "pyo3-ffi"
|
|
1091
|
-
version = "0.
|
|
1089
|
+
version = "0.27.2"
|
|
1092
1090
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1093
|
-
checksum = "
|
|
1091
|
+
checksum = "1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089"
|
|
1094
1092
|
dependencies = [
|
|
1095
1093
|
"libc",
|
|
1096
1094
|
"pyo3-build-config",
|
|
@@ -1098,9 +1096,9 @@ dependencies = [
|
|
|
1098
1096
|
|
|
1099
1097
|
[[package]]
|
|
1100
1098
|
name = "pyo3-macros"
|
|
1101
|
-
version = "0.
|
|
1099
|
+
version = "0.27.2"
|
|
1102
1100
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1103
|
-
checksum = "
|
|
1101
|
+
checksum = "0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02"
|
|
1104
1102
|
dependencies = [
|
|
1105
1103
|
"proc-macro2",
|
|
1106
1104
|
"pyo3-macros-backend",
|
|
@@ -1110,9 +1108,9 @@ dependencies = [
|
|
|
1110
1108
|
|
|
1111
1109
|
[[package]]
|
|
1112
1110
|
name = "pyo3-macros-backend"
|
|
1113
|
-
version = "0.
|
|
1111
|
+
version = "0.27.2"
|
|
1114
1112
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1115
|
-
checksum = "
|
|
1113
|
+
checksum = "03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9"
|
|
1116
1114
|
dependencies = [
|
|
1117
1115
|
"heck",
|
|
1118
1116
|
"proc-macro2",
|
|
@@ -1388,9 +1386,9 @@ dependencies = [
|
|
|
1388
1386
|
|
|
1389
1387
|
[[package]]
|
|
1390
1388
|
name = "target-lexicon"
|
|
1391
|
-
version = "0.
|
|
1389
|
+
version = "0.13.5"
|
|
1392
1390
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1393
|
-
checksum = "
|
|
1391
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
1394
1392
|
|
|
1395
1393
|
[[package]]
|
|
1396
1394
|
name = "tempfile"
|
|
@@ -3,7 +3,7 @@ members = ["maggraph"]
|
|
|
3
3
|
resolver = "2"
|
|
4
4
|
|
|
5
5
|
[workspace.package]
|
|
6
|
-
version = "0.2.
|
|
6
|
+
version = "0.2.5"
|
|
7
7
|
edition = "2021"
|
|
8
8
|
license = "MIT OR Apache-2.0"
|
|
9
9
|
repository = "https://github.com/AlexMercedCoder/MagGraph"
|
|
@@ -26,8 +26,8 @@ tower = "0.5"
|
|
|
26
26
|
tower-http = { version = "0.6", features = ["trace"] }
|
|
27
27
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "signal"] }
|
|
28
28
|
serde_json = "1.0"
|
|
29
|
-
pyo3 = "0.
|
|
30
|
-
pyo3-async-runtimes = { version = "0.
|
|
29
|
+
pyo3 = "0.27"
|
|
30
|
+
pyo3-async-runtimes = { version = "0.27", features = ["tokio-runtime"] }
|
|
31
31
|
tempfile = "3.14"
|
|
32
32
|
assert_cmd = "2.0"
|
|
33
33
|
predicates = "3.1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: maggraph
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Classifier: Development Status :: 3 - Alpha
|
|
5
5
|
Classifier: Intended Audience :: Developers
|
|
6
6
|
Classifier: Intended Audience :: Science/Research
|
|
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
17
|
Classifier: Programming Language :: Rust
|
|
17
18
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
18
19
|
Classifier: Topic :: Database
|
|
@@ -13,7 +13,7 @@ name = "maggraph"
|
|
|
13
13
|
[features]
|
|
14
14
|
default = []
|
|
15
15
|
python = ["dep:pyo3", "dep:pyo3-async-runtimes", "dep:tokio"]
|
|
16
|
-
python-ext = ["python", "pyo3/extension-module"]
|
|
16
|
+
python-ext = ["python", "pyo3/extension-module", "pyo3/abi3-py39"]
|
|
17
17
|
ui = [
|
|
18
18
|
"dep:axum",
|
|
19
19
|
"dep:tower",
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""MagGraph — Python bindings for the Rust graph engine."""
|
|
2
|
+
|
|
3
|
+
from maggraph._maggraph import (
|
|
4
|
+
GraphIndex,
|
|
5
|
+
LakehouseReader,
|
|
6
|
+
MagGraphError,
|
|
7
|
+
Node,
|
|
8
|
+
NodeWithContent,
|
|
9
|
+
ResolvedConfig,
|
|
10
|
+
ResolvedContent,
|
|
11
|
+
TraversalNode,
|
|
12
|
+
TraversalResult,
|
|
13
|
+
load_config,
|
|
14
|
+
open_index,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
async def _graph_read_node_async(self: GraphIndex, node_id: str) -> Node:
|
|
18
|
+
return self.read_node(node_id)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
async def _graph_traverse_async(
|
|
22
|
+
self: GraphIndex, from_id: str, depth: int = 2, order: str = "bfs"
|
|
23
|
+
) -> TraversalResult:
|
|
24
|
+
return self.traverse(from_id, depth, order)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
async def _lakehouse_read_node_async(
|
|
28
|
+
self: LakehouseReader, index: GraphIndex, node_id: str
|
|
29
|
+
) -> NodeWithContent:
|
|
30
|
+
return self.read_node(index, node_id)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# Keep async convenience methods on the Python side so they follow Python 3.14
|
|
34
|
+
# asyncio semantics while reusing the Rust sync methods as the source of truth.
|
|
35
|
+
GraphIndex.read_node_async = _graph_read_node_async
|
|
36
|
+
GraphIndex.traverse_async = _graph_traverse_async
|
|
37
|
+
LakehouseReader.read_node_async = _lakehouse_read_node_async
|
|
38
|
+
|
|
39
|
+
__all__ = [
|
|
40
|
+
"GraphIndex",
|
|
41
|
+
"LakehouseReader",
|
|
42
|
+
"MagGraphError",
|
|
43
|
+
"Node",
|
|
44
|
+
"NodeWithContent",
|
|
45
|
+
"ResolvedConfig",
|
|
46
|
+
"ResolvedContent",
|
|
47
|
+
"TraversalNode",
|
|
48
|
+
"TraversalResult",
|
|
49
|
+
"load_config",
|
|
50
|
+
"open_index",
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
__version__ = "0.2.5"
|
|
@@ -4,7 +4,7 @@ build-backend = "maturin"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "maggraph"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.5"
|
|
8
8
|
description = "In-process graph engine for AI semantic layers — powered by Rust"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -24,6 +24,7 @@ classifiers = [
|
|
|
24
24
|
"Programming Language :: Python :: 3.11",
|
|
25
25
|
"Programming Language :: Python :: 3.12",
|
|
26
26
|
"Programming Language :: Python :: 3.13",
|
|
27
|
+
"Programming Language :: Python :: 3.14",
|
|
27
28
|
"Programming Language :: Rust",
|
|
28
29
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
29
30
|
"Topic :: Database",
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"""MagGraph — Python bindings for the Rust graph engine."""
|
|
2
|
-
|
|
3
|
-
from maggraph._maggraph import (
|
|
4
|
-
GraphIndex,
|
|
5
|
-
LakehouseReader,
|
|
6
|
-
MagGraphError,
|
|
7
|
-
Node,
|
|
8
|
-
NodeWithContent,
|
|
9
|
-
ResolvedConfig,
|
|
10
|
-
ResolvedContent,
|
|
11
|
-
TraversalNode,
|
|
12
|
-
TraversalResult,
|
|
13
|
-
load_config,
|
|
14
|
-
open_index,
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
__all__ = [
|
|
18
|
-
"GraphIndex",
|
|
19
|
-
"LakehouseReader",
|
|
20
|
-
"MagGraphError",
|
|
21
|
-
"Node",
|
|
22
|
-
"NodeWithContent",
|
|
23
|
-
"ResolvedConfig",
|
|
24
|
-
"ResolvedContent",
|
|
25
|
-
"TraversalNode",
|
|
26
|
-
"TraversalResult",
|
|
27
|
-
"load_config",
|
|
28
|
-
"open_index",
|
|
29
|
-
]
|
|
30
|
-
|
|
31
|
-
__version__ = "0.2.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|