langgraph-checkpoint-postgres 3.0.2__tar.gz → 3.0.3__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-3.0.3/.gitignore +102 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/PKG-INFO +2 -2
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/langgraph/store/postgres/base.py +4 -1
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/pyproject.toml +2 -2
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/uv.lock +2 -2
- langgraph_checkpoint_postgres-3.0.2/.gitignore +0 -184
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/LICENSE +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/Makefile +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/README.md +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/langgraph/checkpoint/postgres/__init__.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/langgraph/checkpoint/postgres/_ainternal.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/langgraph/checkpoint/postgres/_internal.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/langgraph/checkpoint/postgres/aio.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/langgraph/checkpoint/postgres/base.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/langgraph/checkpoint/postgres/py.typed +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/langgraph/checkpoint/postgres/shallow.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/langgraph/store/postgres/__init__.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/langgraph/store/postgres/aio.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/langgraph/store/postgres/py.typed +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/tests/__init__.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/tests/compose-postgres.yml +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/tests/conftest.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/tests/embed_test_utils.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/tests/test_async.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/tests/test_async_store.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/tests/test_store.py +0 -0
- {langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/tests/test_sync.py +0 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
.vs/
|
|
2
|
+
.vscode/
|
|
3
|
+
.idea/
|
|
4
|
+
# Byte-compiled / optimized / DLL files
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
*$py.class
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
# Usually these files are written by a python script from a template
|
|
32
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
+
*.manifest
|
|
34
|
+
*.spec
|
|
35
|
+
|
|
36
|
+
# Installer logs
|
|
37
|
+
pip-log.txt
|
|
38
|
+
pip-delete-this-directory.txt
|
|
39
|
+
|
|
40
|
+
# Unit test / coverage reports
|
|
41
|
+
htmlcov/
|
|
42
|
+
.tox/
|
|
43
|
+
.nox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
*.py,cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
|
|
54
|
+
# Django stuff:
|
|
55
|
+
*.log
|
|
56
|
+
local_settings.py
|
|
57
|
+
db.sqlite3
|
|
58
|
+
db.sqlite3-journal
|
|
59
|
+
|
|
60
|
+
# PyBuilder
|
|
61
|
+
target/
|
|
62
|
+
|
|
63
|
+
# Jupyter Notebook
|
|
64
|
+
.ipynb_checkpoints
|
|
65
|
+
notebooks/
|
|
66
|
+
|
|
67
|
+
# IPython
|
|
68
|
+
profile_default/
|
|
69
|
+
ipython_config.py
|
|
70
|
+
|
|
71
|
+
# pyenv
|
|
72
|
+
.python-version
|
|
73
|
+
|
|
74
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
75
|
+
__pypackages__/
|
|
76
|
+
|
|
77
|
+
# Environments
|
|
78
|
+
.env
|
|
79
|
+
.envrc
|
|
80
|
+
.venv
|
|
81
|
+
.venvs
|
|
82
|
+
env/
|
|
83
|
+
venv/
|
|
84
|
+
ENV/
|
|
85
|
+
env.bak/
|
|
86
|
+
venv.bak/
|
|
87
|
+
|
|
88
|
+
# mypy
|
|
89
|
+
.mypy_cache/
|
|
90
|
+
.dmypy.json
|
|
91
|
+
dmypy.json
|
|
92
|
+
|
|
93
|
+
# Pyre type checker
|
|
94
|
+
.pyre/
|
|
95
|
+
|
|
96
|
+
# macOS display setting files
|
|
97
|
+
.DS_Store
|
|
98
|
+
|
|
99
|
+
.vercel
|
|
100
|
+
.turbo
|
|
101
|
+
.editorconfig
|
|
102
|
+
.scratch
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: langgraph-checkpoint-postgres
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.3
|
|
4
4
|
Summary: Library with a Postgres implementation of LangGraph checkpoint saver.
|
|
5
5
|
Project-URL: Source, https://github.com/langchain-ai/langgraph/tree/main/libs/checkpoint-postgres
|
|
6
6
|
Project-URL: Twitter, https://x.com/LangChainAI
|
|
@@ -9,7 +9,7 @@ Project-URL: Reddit, https://www.reddit.com/r/LangChain/
|
|
|
9
9
|
License-Expression: MIT
|
|
10
10
|
License-File: LICENSE
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
|
-
Requires-Dist: langgraph-checkpoint<
|
|
12
|
+
Requires-Dist: langgraph-checkpoint<5.0.0,>=2.1.2
|
|
13
13
|
Requires-Dist: orjson>=3.10.1
|
|
14
14
|
Requires-Dist: psycopg-pool>=3.2.0
|
|
15
15
|
Requires-Dist: psycopg>=3.2.0
|
|
@@ -151,6 +151,7 @@ class PoolConfig(TypedDict, total=False):
|
|
|
151
151
|
"""Connection pool settings for PostgreSQL connections.
|
|
152
152
|
|
|
153
153
|
Controls connection lifecycle and resource utilization:
|
|
154
|
+
|
|
154
155
|
- Small pools (1-5) suit low-concurrency workloads
|
|
155
156
|
- Larger pools handle concurrent requests but consume more resources
|
|
156
157
|
- Setting max_size prevents resource exhaustion under load
|
|
@@ -166,6 +167,7 @@ class PoolConfig(TypedDict, total=False):
|
|
|
166
167
|
"""Additional connection arguments passed to each connection in the pool.
|
|
167
168
|
|
|
168
169
|
Default kwargs set automatically:
|
|
170
|
+
|
|
169
171
|
- autocommit: True
|
|
170
172
|
- prepare_threshold: 0
|
|
171
173
|
- row_factory: dict_row
|
|
@@ -656,7 +658,8 @@ class PostgresStore(BaseStore, BasePostgresStore[_pg_internal.Conn]):
|
|
|
656
658
|
item = store.get(("users", "123"), "prefs")
|
|
657
659
|
```
|
|
658
660
|
|
|
659
|
-
Or using the convenient from_conn_string helper:
|
|
661
|
+
Or using the convenient `from_conn_string` helper:
|
|
662
|
+
|
|
660
663
|
```python
|
|
661
664
|
from langgraph.store.postgres import PostgresStore
|
|
662
665
|
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "langgraph-checkpoint-postgres"
|
|
7
|
-
version = "3.0.
|
|
7
|
+
version = "3.0.3"
|
|
8
8
|
description = "Library with a Postgres implementation of LangGraph checkpoint saver."
|
|
9
9
|
authors = []
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -12,7 +12,7 @@ readme = "README.md"
|
|
|
12
12
|
license = "MIT"
|
|
13
13
|
license-files = ['LICENSE']
|
|
14
14
|
dependencies = [
|
|
15
|
-
"langgraph-checkpoint>=2.1.2,<
|
|
15
|
+
"langgraph-checkpoint>=2.1.2,<5.0.0",
|
|
16
16
|
"orjson>=3.10.1",
|
|
17
17
|
"psycopg>=3.2.0",
|
|
18
18
|
"psycopg-pool>=3.2.0",
|
|
@@ -259,7 +259,7 @@ wheels = [
|
|
|
259
259
|
|
|
260
260
|
[[package]]
|
|
261
261
|
name = "langgraph-checkpoint"
|
|
262
|
-
version = "
|
|
262
|
+
version = "4.0.0"
|
|
263
263
|
source = { editable = "../checkpoint" }
|
|
264
264
|
dependencies = [
|
|
265
265
|
{ name = "langchain-core" },
|
|
@@ -306,7 +306,7 @@ test = [
|
|
|
306
306
|
|
|
307
307
|
[[package]]
|
|
308
308
|
name = "langgraph-checkpoint-postgres"
|
|
309
|
-
version = "3.0.
|
|
309
|
+
version = "3.0.3"
|
|
310
310
|
source = { editable = "." }
|
|
311
311
|
dependencies = [
|
|
312
312
|
{ name = "langgraph-checkpoint" },
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
.vs/
|
|
2
|
-
.vscode/
|
|
3
|
-
.idea/
|
|
4
|
-
# Byte-compiled / optimized / DLL files
|
|
5
|
-
__pycache__/
|
|
6
|
-
*.py[cod]
|
|
7
|
-
*$py.class
|
|
8
|
-
|
|
9
|
-
# C extensions
|
|
10
|
-
*.so
|
|
11
|
-
|
|
12
|
-
# Distribution / packaging
|
|
13
|
-
.Python
|
|
14
|
-
build/
|
|
15
|
-
develop-eggs/
|
|
16
|
-
dist/
|
|
17
|
-
downloads/
|
|
18
|
-
eggs/
|
|
19
|
-
.eggs/
|
|
20
|
-
lib/
|
|
21
|
-
lib64/
|
|
22
|
-
parts/
|
|
23
|
-
sdist/
|
|
24
|
-
var/
|
|
25
|
-
wheels/
|
|
26
|
-
pip-wheel-metadata/
|
|
27
|
-
share/python-wheels/
|
|
28
|
-
*.egg-info/
|
|
29
|
-
.installed.cfg
|
|
30
|
-
*.egg
|
|
31
|
-
MANIFEST
|
|
32
|
-
|
|
33
|
-
# PyInstaller
|
|
34
|
-
# Usually these files are written by a python script from a template
|
|
35
|
-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
36
|
-
*.manifest
|
|
37
|
-
*.spec
|
|
38
|
-
|
|
39
|
-
# Installer logs
|
|
40
|
-
pip-log.txt
|
|
41
|
-
pip-delete-this-directory.txt
|
|
42
|
-
|
|
43
|
-
# Unit test / coverage reports
|
|
44
|
-
htmlcov/
|
|
45
|
-
.tox/
|
|
46
|
-
.nox/
|
|
47
|
-
.coverage
|
|
48
|
-
.coverage.*
|
|
49
|
-
.cache
|
|
50
|
-
nosetests.xml
|
|
51
|
-
coverage.xml
|
|
52
|
-
*.cover
|
|
53
|
-
*.py,cover
|
|
54
|
-
.hypothesis/
|
|
55
|
-
.pytest_cache/
|
|
56
|
-
|
|
57
|
-
# Translations
|
|
58
|
-
*.mo
|
|
59
|
-
*.pot
|
|
60
|
-
|
|
61
|
-
# Django stuff:
|
|
62
|
-
*.log
|
|
63
|
-
local_settings.py
|
|
64
|
-
db.sqlite3
|
|
65
|
-
db.sqlite3-journal
|
|
66
|
-
|
|
67
|
-
# Flask stuff:
|
|
68
|
-
instance/
|
|
69
|
-
.webassets-cache
|
|
70
|
-
|
|
71
|
-
# Scrapy stuff:
|
|
72
|
-
.scrapy
|
|
73
|
-
|
|
74
|
-
# Sphinx documentation
|
|
75
|
-
docs/_build/
|
|
76
|
-
docs/docs/_build/
|
|
77
|
-
|
|
78
|
-
# PyBuilder
|
|
79
|
-
target/
|
|
80
|
-
|
|
81
|
-
# Jupyter Notebook
|
|
82
|
-
.ipynb_checkpoints
|
|
83
|
-
notebooks/
|
|
84
|
-
|
|
85
|
-
# IPython
|
|
86
|
-
profile_default/
|
|
87
|
-
ipython_config.py
|
|
88
|
-
|
|
89
|
-
# pyenv
|
|
90
|
-
.python-version
|
|
91
|
-
|
|
92
|
-
# pipenv
|
|
93
|
-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
94
|
-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
95
|
-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
96
|
-
# install all needed dependencies.
|
|
97
|
-
#Pipfile.lock
|
|
98
|
-
|
|
99
|
-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
100
|
-
__pypackages__/
|
|
101
|
-
|
|
102
|
-
# Celery stuff
|
|
103
|
-
celerybeat-schedule
|
|
104
|
-
celerybeat.pid
|
|
105
|
-
|
|
106
|
-
# SageMath parsed files
|
|
107
|
-
*.sage.py
|
|
108
|
-
|
|
109
|
-
# Environments
|
|
110
|
-
.env
|
|
111
|
-
.envrc
|
|
112
|
-
.venv
|
|
113
|
-
.venvs
|
|
114
|
-
env/
|
|
115
|
-
venv/
|
|
116
|
-
ENV/
|
|
117
|
-
env.bak/
|
|
118
|
-
venv.bak/
|
|
119
|
-
|
|
120
|
-
# Spyder project settings
|
|
121
|
-
.spyderproject
|
|
122
|
-
.spyproject
|
|
123
|
-
|
|
124
|
-
# Rope project settings
|
|
125
|
-
.ropeproject
|
|
126
|
-
|
|
127
|
-
# mkdocs documentation
|
|
128
|
-
/site
|
|
129
|
-
|
|
130
|
-
# mypy
|
|
131
|
-
.mypy_cache/
|
|
132
|
-
.dmypy.json
|
|
133
|
-
dmypy.json
|
|
134
|
-
|
|
135
|
-
# Pyre type checker
|
|
136
|
-
.pyre/
|
|
137
|
-
|
|
138
|
-
# macOS display setting files
|
|
139
|
-
.DS_Store
|
|
140
|
-
|
|
141
|
-
# Wandb directory
|
|
142
|
-
wandb/
|
|
143
|
-
|
|
144
|
-
# asdf tool versions
|
|
145
|
-
.tool-versions
|
|
146
|
-
/.ruff_cache/
|
|
147
|
-
|
|
148
|
-
*.pkl
|
|
149
|
-
*.bin
|
|
150
|
-
|
|
151
|
-
# integration test artifacts
|
|
152
|
-
data_map*
|
|
153
|
-
\[('_type', 'fake'), ('stop', None)]
|
|
154
|
-
|
|
155
|
-
# Replit files
|
|
156
|
-
*replit*
|
|
157
|
-
|
|
158
|
-
node_modules
|
|
159
|
-
docs/.yarn/
|
|
160
|
-
docs/node_modules/
|
|
161
|
-
docs/.docusaurus/
|
|
162
|
-
docs/.cache-loader/
|
|
163
|
-
docs/_dist
|
|
164
|
-
docs/api_reference/api_reference.rst
|
|
165
|
-
docs/api_reference/experimental_api_reference.rst
|
|
166
|
-
docs/api_reference/_build
|
|
167
|
-
docs/api_reference/*/
|
|
168
|
-
!docs/api_reference/_static/
|
|
169
|
-
!docs/api_reference/templates/
|
|
170
|
-
!docs/api_reference/themes/
|
|
171
|
-
docs/docs_skeleton/build
|
|
172
|
-
docs/docs_skeleton/node_modules
|
|
173
|
-
docs/docs_skeleton/yarn.lock
|
|
174
|
-
|
|
175
|
-
# Any new jupyter notebooks
|
|
176
|
-
# not intended for the repo
|
|
177
|
-
Untitled*.ipynb
|
|
178
|
-
|
|
179
|
-
Chinook.db
|
|
180
|
-
|
|
181
|
-
.vercel
|
|
182
|
-
.turbo
|
|
183
|
-
.editorconfig
|
|
184
|
-
.scratch
|
|
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
|
{langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/tests/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/tests/conftest.py
RENAMED
|
File without changes
|
|
File without changes
|
{langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/tests/test_async.py
RENAMED
|
File without changes
|
|
File without changes
|
{langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/tests/test_store.py
RENAMED
|
File without changes
|
{langgraph_checkpoint_postgres-3.0.2 → langgraph_checkpoint_postgres-3.0.3}/tests/test_sync.py
RENAMED
|
File without changes
|