langgraph-checkpoint-postgres 2.0.1__tar.gz → 2.0.2__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.
- {langgraph_checkpoint_postgres-2.0.1 → langgraph_checkpoint_postgres-2.0.2}/PKG-INFO +2 -2
- {langgraph_checkpoint_postgres-2.0.1 → langgraph_checkpoint_postgres-2.0.2}/langgraph/checkpoint/postgres/__init__.py +1 -1
- {langgraph_checkpoint_postgres-2.0.1 → langgraph_checkpoint_postgres-2.0.2}/langgraph/checkpoint/postgres/base.py +1 -1
- {langgraph_checkpoint_postgres-2.0.1 → langgraph_checkpoint_postgres-2.0.2}/langgraph/store/postgres/aio.py +0 -1
- langgraph_checkpoint_postgres-2.0.2/langgraph/store/postgres/py.typed +0 -0
- {langgraph_checkpoint_postgres-2.0.1 → langgraph_checkpoint_postgres-2.0.2}/pyproject.toml +2 -2
- {langgraph_checkpoint_postgres-2.0.1 → langgraph_checkpoint_postgres-2.0.2}/README.md +0 -0
- {langgraph_checkpoint_postgres-2.0.1 → langgraph_checkpoint_postgres-2.0.2}/langgraph/checkpoint/postgres/aio.py +0 -0
- {langgraph_checkpoint_postgres-2.0.1/langgraph/checkpoint → langgraph_checkpoint_postgres-2.0.2/langgraph/checkpoint/postgres}/py.typed +0 -0
- {langgraph_checkpoint_postgres-2.0.1 → langgraph_checkpoint_postgres-2.0.2}/langgraph/store/postgres/__init__.py +0 -0
- {langgraph_checkpoint_postgres-2.0.1 → langgraph_checkpoint_postgres-2.0.2}/langgraph/store/postgres/base.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: langgraph-checkpoint-postgres
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Library with a Postgres implementation of LangGraph checkpoint saver.
|
|
5
5
|
Home-page: https://www.github.com/langchain-ai/langgraph
|
|
6
6
|
License: MIT
|
|
@@ -11,7 +11,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
-
Requires-Dist: langgraph-checkpoint (>=2.0.
|
|
14
|
+
Requires-Dist: langgraph-checkpoint (>=2.0.2,<3.0.0)
|
|
15
15
|
Requires-Dist: orjson (>=3.10.1)
|
|
16
16
|
Requires-Dist: psycopg (>=3.0.0,<4.0.0)
|
|
17
17
|
Requires-Dist: psycopg-pool (>=3.0.0,<4.0.0)
|
|
@@ -287,7 +287,7 @@ class PostgresSaver(BasePostgresSaver):
|
|
|
287
287
|
>>> DB_URI = "postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable"
|
|
288
288
|
>>> with PostgresSaver.from_conn_string(DB_URI) as memory:
|
|
289
289
|
>>> config = {"configurable": {"thread_id": "1", "checkpoint_ns": ""}}
|
|
290
|
-
>>> checkpoint = {"ts": "2024-05-04T06:32:42.235444+00:00", "id": "1ef4f797-8335-6428-8001-8a1503f9b875", "
|
|
290
|
+
>>> checkpoint = {"ts": "2024-05-04T06:32:42.235444+00:00", "id": "1ef4f797-8335-6428-8001-8a1503f9b875", "channel_values": {"key": "value"}}
|
|
291
291
|
>>> saved_config = memory.put(config, checkpoint, {"source": "input", "step": 1, "writes": {"key": "value"}}, {})
|
|
292
292
|
>>> print(saved_config)
|
|
293
293
|
{'configurable': {'thread_id': '1', 'checkpoint_ns': '', 'checkpoint_id': '1ef4f797-8335-6428-8001-8a1503f9b875'}}
|
|
@@ -249,7 +249,7 @@ class BasePostgresSaver(BaseCheckpointSaver[str]):
|
|
|
249
249
|
filter: MetadataInput,
|
|
250
250
|
before: Optional[RunnableConfig] = None,
|
|
251
251
|
) -> Tuple[str, List[Any]]:
|
|
252
|
-
"""Return WHERE clause predicates for alist() given config, filter,
|
|
252
|
+
"""Return WHERE clause predicates for alist() given config, filter, before.
|
|
253
253
|
|
|
254
254
|
This method returns a tuple of a string and a tuple of values. The string
|
|
255
255
|
is the parametered WHERE clause predicate (including the WHERE keyword):
|
|
@@ -44,7 +44,6 @@ class AsyncPostgresStore(AsyncBatchedBaseStore, BasePostgresStore[AsyncConnectio
|
|
|
44
44
|
super().__init__()
|
|
45
45
|
self._deserializer = deserializer
|
|
46
46
|
self.conn = conn
|
|
47
|
-
self.conn = conn
|
|
48
47
|
self.loop = asyncio.get_running_loop()
|
|
49
48
|
|
|
50
49
|
async def abatch(self, ops: Iterable[Op]) -> list[Result]:
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "langgraph-checkpoint-postgres"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.2"
|
|
4
4
|
description = "Library with a Postgres implementation of LangGraph checkpoint saver."
|
|
5
5
|
authors = []
|
|
6
6
|
license = "MIT"
|
|
@@ -10,7 +10,7 @@ packages = [{ include = "langgraph" }]
|
|
|
10
10
|
|
|
11
11
|
[tool.poetry.dependencies]
|
|
12
12
|
python = "^3.9.0,<4.0"
|
|
13
|
-
langgraph-checkpoint = "^2.0.
|
|
13
|
+
langgraph-checkpoint = "^2.0.2"
|
|
14
14
|
orjson = ">=3.10.1"
|
|
15
15
|
psycopg = "^3.0.0"
|
|
16
16
|
psycopg-pool = "^3.0.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|