langgraph-checkpoint-sqlite 2.0.4__tar.gz → 2.0.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langgraph-checkpoint-sqlite
3
- Version: 2.0.4
3
+ Version: 2.0.6
4
4
  Summary: Library with a SQLite implementation of LangGraph checkpoint saver.
5
5
  Home-page: https://www.github.com/langchain-ai/langgraph
6
6
  License: MIT
@@ -11,8 +11,8 @@ 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: aiosqlite (>=0.20.0,<0.21.0)
15
- Requires-Dist: langgraph-checkpoint (>=2.0.10,<3.0.0)
14
+ Requires-Dist: aiosqlite (>=0.20,<0.22)
15
+ Requires-Dist: langgraph-checkpoint (>=2.0.15,<3.0.0)
16
16
  Project-URL: Repository, https://www.github.com/langchain-ai/langgraph
17
17
  Description-Content-Type: text/markdown
18
18
 
@@ -15,6 +15,7 @@ from langgraph.checkpoint.base import (
15
15
  CheckpointTuple,
16
16
  SerializerProtocol,
17
17
  get_checkpoint_id,
18
+ get_checkpoint_metadata,
18
19
  )
19
20
  from langgraph.checkpoint.serde.jsonplus import JsonPlusSerializer
20
21
  from langgraph.checkpoint.serde.types import ChannelProtocol
@@ -398,15 +399,7 @@ class SqliteSaver(BaseCheckpointSaver[str]):
398
399
  checkpoint_ns = config["configurable"]["checkpoint_ns"]
399
400
  type_, serialized_checkpoint = self.serde.dumps_typed(checkpoint)
400
401
  serialized_metadata = self.jsonplus_serde.dumps(
401
- {
402
- **{
403
- k: v
404
- for k, v in config["configurable"].items()
405
- if not k.startswith("__")
406
- },
407
- **config.get("metadata", {}),
408
- **metadata,
409
- }
402
+ get_checkpoint_metadata(config, metadata)
410
403
  )
411
404
  with self.cursor() as cur:
412
405
  cur.execute(
@@ -16,6 +16,7 @@ from langgraph.checkpoint.base import (
16
16
  CheckpointTuple,
17
17
  SerializerProtocol,
18
18
  get_checkpoint_id,
19
+ get_checkpoint_metadata,
19
20
  )
20
21
  from langgraph.checkpoint.serde.jsonplus import JsonPlusSerializer
21
22
  from langgraph.checkpoint.serde.types import ChannelProtocol
@@ -464,15 +465,7 @@ class AsyncSqliteSaver(BaseCheckpointSaver[str]):
464
465
  checkpoint_ns = config["configurable"]["checkpoint_ns"]
465
466
  type_, serialized_checkpoint = self.serde.dumps_typed(checkpoint)
466
467
  serialized_metadata = self.jsonplus_serde.dumps(
467
- {
468
- **{
469
- k: v
470
- for k, v in config["configurable"].items()
471
- if not k.startswith("__")
472
- },
473
- **config.get("metadata", {}),
474
- **metadata,
475
- }
468
+ get_checkpoint_metadata(config, metadata)
476
469
  )
477
470
  async with (
478
471
  self.lock,
@@ -537,6 +530,7 @@ class AsyncSqliteSaver(BaseCheckpointSaver[str]):
537
530
  for idx, (channel, value) in enumerate(writes)
538
531
  ],
539
532
  )
533
+ await self.conn.commit()
540
534
 
541
535
  def get_next_version(self, current: Optional[str], channel: ChannelProtocol) -> str:
542
536
  """Generate the next version ID for a channel.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "langgraph-checkpoint-sqlite"
3
- version = "2.0.4"
3
+ version = "2.0.6"
4
4
  description = "Library with a SQLite implementation of LangGraph checkpoint saver."
5
5
  authors = []
6
6
  license = "MIT"
@@ -10,8 +10,8 @@ packages = [{ include = "langgraph" }]
10
10
 
11
11
  [tool.poetry.dependencies]
12
12
  python = "^3.9.0"
13
- langgraph-checkpoint = "^2.0.10"
14
- aiosqlite = "^0.20.0"
13
+ langgraph-checkpoint = "^2.0.15"
14
+ aiosqlite = ">=0.20,<0.22"
15
15
 
16
16
  [tool.poetry.group.dev.dependencies]
17
17
  ruff = "^0.6.2"