memmachine-client 0.3.5__tar.gz → 0.3.7__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.
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/PKG-INFO +2 -2
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/client_tests/test_integration_complete.py +9 -5
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/client_tests/test_memory.py +2 -2
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/pyproject.toml +1 -1
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/PKG-INFO +2 -2
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/requires.txt +1 -1
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/LICENSE +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/README.md +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/client_tests/__init__.py +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/client_tests/test_client.py +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/client_tests/test_config.py +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/client_tests/test_format.py +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/client_tests/test_langgraph.py +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/setup.cfg +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client/__init__.py +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client/client.py +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client/config.py +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client/format.py +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client/langgraph.py +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client/memory.py +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client/project.py +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/SOURCES.txt +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/dependency_links.txt +0 -0
- {memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: memmachine-client
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.7
|
|
4
4
|
Summary: MemMachine REST Client - A lightweight Python client library for MemMachine memory system
|
|
5
5
|
Author-email: MemMachine <noreply@memmachine.ai>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -19,7 +19,7 @@ Description-Content-Type: text/markdown
|
|
|
19
19
|
License-File: LICENSE
|
|
20
20
|
Requires-Dist: memmachine-common
|
|
21
21
|
Requires-Dist: pydantic>=2.0.0
|
|
22
|
-
Requires-Dist: requests>=2.
|
|
22
|
+
Requires-Dist: requests>=2.33.0
|
|
23
23
|
Requires-Dist: typing-extensions>=4.0.0
|
|
24
24
|
Requires-Dist: urllib3>=2.6.3
|
|
25
25
|
Dynamic: license-file
|
{memmachine_client-0.3.5 → memmachine_client-0.3.7}/client_tests/test_integration_complete.py
RENAMED
|
@@ -45,6 +45,7 @@ def check_server_available():
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
TEST_BASE_URL = os.environ.get("MEMORY_BACKEND_URL", "http://localhost:8080")
|
|
48
|
+
CLIENT_TIMEOUT_SECONDS = 180
|
|
48
49
|
|
|
49
50
|
|
|
50
51
|
@pytest.mark.integration
|
|
@@ -58,7 +59,7 @@ class TestMemMachineIntegration:
|
|
|
58
59
|
@pytest.fixture
|
|
59
60
|
def client(self):
|
|
60
61
|
"""Create a MemMachine client instance."""
|
|
61
|
-
return MemMachineClient(base_url=TEST_BASE_URL, timeout=
|
|
62
|
+
return MemMachineClient(base_url=TEST_BASE_URL, timeout=CLIENT_TIMEOUT_SECONDS)
|
|
62
63
|
|
|
63
64
|
@pytest.fixture
|
|
64
65
|
def unique_test_ids(self):
|
|
@@ -352,7 +353,7 @@ class TestMemMachineIntegration:
|
|
|
352
353
|
try:
|
|
353
354
|
results = memory.search(
|
|
354
355
|
"What do I like to drink?",
|
|
355
|
-
filter_dict={"time": "morning"},
|
|
356
|
+
filter_dict={"m.time": "morning"},
|
|
356
357
|
limit=10,
|
|
357
358
|
)
|
|
358
359
|
assert isinstance(results, SearchResult)
|
|
@@ -487,7 +488,7 @@ class TestMemMachineIntegration:
|
|
|
487
488
|
)
|
|
488
489
|
|
|
489
490
|
# Search with custom filters only - built-in filters are automatically merged
|
|
490
|
-
custom_filters = {"category": "profession"}
|
|
491
|
+
custom_filters = {"m.category": "profession"}
|
|
491
492
|
try:
|
|
492
493
|
results = memory.search(
|
|
493
494
|
"What is my profession?",
|
|
@@ -1585,8 +1586,11 @@ class TestMemMachineToolsIntegration:
|
|
|
1585
1586
|
@pytest.fixture
|
|
1586
1587
|
def tools(self, unique_test_ids):
|
|
1587
1588
|
"""Create a MemMachineTools instance."""
|
|
1589
|
+
client = MemMachineClient(
|
|
1590
|
+
base_url=TEST_BASE_URL, timeout=CLIENT_TIMEOUT_SECONDS
|
|
1591
|
+
)
|
|
1588
1592
|
t = MemMachineTools(
|
|
1589
|
-
|
|
1593
|
+
client=client,
|
|
1590
1594
|
org_id=unique_test_ids["org_id"],
|
|
1591
1595
|
project_id=unique_test_ids["project_id"],
|
|
1592
1596
|
user_id=unique_test_ids["user_id"],
|
|
@@ -1644,7 +1648,7 @@ class TestConfigIntegration:
|
|
|
1644
1648
|
@pytest.fixture
|
|
1645
1649
|
def client(self):
|
|
1646
1650
|
"""Create a MemMachine client instance."""
|
|
1647
|
-
return MemMachineClient(base_url=TEST_BASE_URL, timeout=
|
|
1651
|
+
return MemMachineClient(base_url=TEST_BASE_URL, timeout=CLIENT_TIMEOUT_SECONDS)
|
|
1648
1652
|
|
|
1649
1653
|
@pytest.fixture
|
|
1650
1654
|
def config(self, client):
|
|
@@ -62,12 +62,12 @@ class TestMemory:
|
|
|
62
62
|
def test_init_missing_org_id_raises_error(self, mock_client):
|
|
63
63
|
"""Test that missing org_id raises TypeError."""
|
|
64
64
|
with pytest.raises(TypeError, match=r"missing.*required.*argument.*org_id"):
|
|
65
|
-
Memory(client=mock_client, project_id="test_project") # type: ignore[call-arg]
|
|
65
|
+
Memory(client=mock_client, project_id="test_project") # type: ignore[call-arg] # ty: ignore[missing-argument]
|
|
66
66
|
|
|
67
67
|
def test_init_missing_project_id_raises_error(self, mock_client):
|
|
68
68
|
"""Test that missing project_id raises TypeError."""
|
|
69
69
|
with pytest.raises(TypeError, match=r"missing.*required.*argument.*project_id"):
|
|
70
|
-
Memory(client=mock_client, org_id="test_org") # type: ignore[call-arg]
|
|
70
|
+
Memory(client=mock_client, org_id="test_org") # type: ignore[call-arg] # ty: ignore[missing-argument]
|
|
71
71
|
|
|
72
72
|
def test_init_with_string_ids(self, mock_client):
|
|
73
73
|
"""Test Memory initialization with string IDs."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: memmachine-client
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.7
|
|
4
4
|
Summary: MemMachine REST Client - A lightweight Python client library for MemMachine memory system
|
|
5
5
|
Author-email: MemMachine <noreply@memmachine.ai>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -19,7 +19,7 @@ Description-Content-Type: text/markdown
|
|
|
19
19
|
License-File: LICENSE
|
|
20
20
|
Requires-Dist: memmachine-common
|
|
21
21
|
Requires-Dist: pydantic>=2.0.0
|
|
22
|
-
Requires-Dist: requests>=2.
|
|
22
|
+
Requires-Dist: requests>=2.33.0
|
|
23
23
|
Requires-Dist: typing-extensions>=4.0.0
|
|
24
24
|
Requires-Dist: urllib3>=2.6.3
|
|
25
25
|
Dynamic: license-file
|
|
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
|
{memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{memmachine_client-0.3.5 → memmachine_client-0.3.7}/src/memmachine_client.egg-info/top_level.txt
RENAMED
|
File without changes
|