lmem 0.2.2__tar.gz → 0.2.4__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.
- {lmem-0.2.2 → lmem-0.2.4}/.gitignore +1 -0
- {lmem-0.2.2 → lmem-0.2.4}/PKG-INFO +1 -1
- {lmem-0.2.2 → lmem-0.2.4}/pyproject.toml +1 -1
- {lmem-0.2.2 → lmem-0.2.4}/src/lmem/__init__.py +1 -1
- {lmem-0.2.2 → lmem-0.2.4}/src/lmem/binary.py +9 -4
- {lmem-0.2.2 → lmem-0.2.4}/LICENSE +0 -0
- {lmem-0.2.2 → lmem-0.2.4}/README.md +0 -0
- {lmem-0.2.2 → lmem-0.2.4}/src/lightmem/__init__.py +0 -0
- {lmem-0.2.2 → lmem-0.2.4}/src/lightmem/py.typed +0 -0
- {lmem-0.2.2 → lmem-0.2.4}/src/lmem/cli.py +0 -0
- {lmem-0.2.2 → lmem-0.2.4}/src/lmem/client.py +0 -0
- {lmem-0.2.2 → lmem-0.2.4}/src/lmem/models.py +0 -0
- {lmem-0.2.2 → lmem-0.2.4}/src/lmem/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: lmem
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Ultra-Fast Local AI Agent Persistent Memory Engine with Neural Extractive QA & Knowledge Graph
|
|
5
5
|
Project-URL: Homepage, https://github.com/krishnakanthpathi/lightmem
|
|
6
6
|
Project-URL: Repository, https://github.com/krishnakanthpathi/lightmem
|
|
@@ -45,6 +45,11 @@ def get_binary_path() -> str:
|
|
|
45
45
|
3. PATH, filtering out Python wrapper scripts
|
|
46
46
|
4. Auto-downloads prebuilt binary to `~/.lightmem/bin/lmem` if missing.
|
|
47
47
|
"""
|
|
48
|
+
# 0. Check bundled binary packaged directly with the Python wheel (site-packages/lmem/bin/lmem)
|
|
49
|
+
bundled = Path(__file__).parent / "bin" / ("lmem.exe" if platform.system() == "Windows" else "lmem")
|
|
50
|
+
if _is_native_binary(bundled):
|
|
51
|
+
return str(bundled)
|
|
52
|
+
|
|
48
53
|
env_path = os.environ.get("LMEM_BINARY_PATH") or os.environ.get("LIGHTMEM_BINARY_PATH")
|
|
49
54
|
if env_path and _is_native_binary(env_path):
|
|
50
55
|
return env_path
|
|
@@ -85,7 +90,7 @@ def get_binary_path() -> str:
|
|
|
85
90
|
)
|
|
86
91
|
|
|
87
92
|
|
|
88
|
-
def ensure_binary_downloaded(version: str = "v0.2.
|
|
93
|
+
def ensure_binary_downloaded(version: str = "v0.2.4") -> str:
|
|
89
94
|
"""Downloads pre-built release binary for current system into ~/.lightmem/bin/lmem."""
|
|
90
95
|
system = platform.system().lower()
|
|
91
96
|
machine = platform.machine().lower()
|
|
@@ -131,10 +136,10 @@ def ensure_binary_downloaded(version: str = "v0.2.2") -> str:
|
|
|
131
136
|
return str(dest_exe)
|
|
132
137
|
except Exception as e:
|
|
133
138
|
tmp_archive.unlink(missing_ok=True)
|
|
134
|
-
# Fall back to v0.2.
|
|
135
|
-
if version != "v0.2.
|
|
139
|
+
# Fall back to v0.2.3 if v0.2.4 is still building on GitHub Actions
|
|
140
|
+
if version != "v0.2.3":
|
|
136
141
|
try:
|
|
137
|
-
return ensure_binary_downloaded(version="v0.2.
|
|
142
|
+
return ensure_binary_downloaded(version="v0.2.3")
|
|
138
143
|
except Exception:
|
|
139
144
|
pass
|
|
140
145
|
raise RuntimeError(f"Failed to auto-download lmem binary from {url}: {e}")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|