This release is a pre-release and may not be stable for production use.
LangGraph Checkpoint Oracle
Implementation of LangGraph CheckpointSaver that uses Oracle Database.
Supported Oracle Database
Oracle Database 18c or later is recommended.
Dependencies
To use Both synchronous OracleSaver and asynchronous AsyncOracleSaver, install the oracledb package.
There is currently no support for other drivers.
Usage
__|default|__ is not allowed as a checkpoint_ns because it is reserved for internal use.
from oracledb import ConnectParams
from langgraph.checkpoint.oracle import OracleSaver
write_config = {"configurable": {"thread_id": "1", "checkpoint_ns": ""}}
read_config = {"configurable": {"thread_id": "1"}}
DB_PARAMS = {
"user": "user",
"password": "password",
"dsn": "localhost:1521/ORCLPDB1",
}
params = ConnectParams(host="localhost", port=1521, service_name="FREE", user="system", password="test")
with OracleSaver.from_conn_params(DB_PARAMS) as checkpointer:
# call .setup() the first time you're using the checkpointer
checkpointer.setup()
checkpoint = {
"v": 2,
"ts": "2024-07-31T20:14:19.804150+00:00",
"id": "1ef4f797-8335-6428-8001-8a1503f9b875",
"channel_values": {
"my_key": "meow",
"node": "node"
},
"channel_versions": {
"__start__": 2,
"my_key": 3,
"start:node": 3,
"node": 3
},
"versions_seen": {
"__input__": {},
"__start__": {
"__start__": 1
},
"node": {
"start:node": 2
}
},
"pending_sends": [],
}
# store checkpoint
checkpointer.put(write_config, checkpoint, {}, {})
# load checkpoint
checkpointer.get(read_config)
# list checkpoints
list(checkpointer.list(read_config))
Async
from oracledb import ConnectParams
from langgraph.checkpoint.oracle.aio import AsyncOracleSaver
params = ConnectParams(host="localhost", port=1521, service_name="FREE", user="system", password="test")
async with AsyncOracleSaver.from_conn_params(params) as checkpointer:
checkpoint = {
"v": 2,
"ts": "2024-07-31T20:14:19.804150+00:00",
"id": "1ef4f797-8335-6428-8001-8a1503f9b875",
"channel_values": {
"my_key": "meow",
"node": "node"
},
"channel_versions": {
"__start__": 2,
"my_key": 3,
"start:node": 3,
"node": 3
},
"versions_seen": {
"__input__": {},
"__start__": {
"__start__": 1
},
"node": {
"start:node": 2
}
},
"pending_sends": [],
}
# store checkpoint
await checkpointer.aput(write_config, checkpoint, {}, {})
# load checkpoint
await checkpointer.aget(read_config)
# list checkpoints
[c async for c in checkpointer.alist(read_config)]
Metadata
Release files for langgraph-checkpoint-oracle 2.0.0rc7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langgraph_checkpoint_oracle-2.0.0rc7.tar.gz | 11.6 kB | Without provenance | Details for langgraph_checkpoint_oracle-2.0.0rc7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langgraph_checkpoint_oracle-2.0.0rc7-py3-none-any.whl | Python 3 | none | any | Details for langgraph_checkpoint_oracle-2.0.0rc7-py3-none-any.whl |
Total release size: 27.0 kB
Release files / langgraph_checkpoint_oracle-2.0.0rc7.tar.gz
| Download URL | langgraph_checkpoint_oracle-2.0.0rc7.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c6f22d9610608794cdadb83c9c6cf6bd22b60fda332cf7e160210ffa9db2024
|
|
BLAKE2b-256 checksum How to use checksums |
c815bc804adbc3aa6c0689bb8578a72d72ae348f175e75d146a34e45150ae04d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.2 Darwin/23.6.0
|
Release files / langgraph_checkpoint_oracle-2.0.0rc7-py3-none-any.whl
| Download URL | langgraph_checkpoint_oracle-2.0.0rc7-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9dc442e4d2f370a11a303784307f17ce8636e42ad2aa697aebf545807fdebdfa
|
|
BLAKE2b-256 checksum How to use checksums |
b039979164179f6bff6eca9363944ebc694b047ff6e8c512b9f05d9293426ab9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.2 Darwin/23.6.0
|
Security for langgraph-checkpoint-oracle 2.0.0rc7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.