Skip to main content

nodus-store-sql

SQLAlchemy-backed persistence adapters for Nodus runs, events, and jobs.

Provides sync and async stores for the three core durable state surfaces: RunStore (execution lifecycle), EventStore (append-only audit trail), JobStore (background job queue with atomic claiming).

Install

pip install nodus-store-sql           # sync only
pip install "nodus-store-sql[async]"  # + async support

Usage

from nodus_store_sql import SqlStore, SqlStoreConfig, RunRecord
from datetime import datetime, timezone

store = SqlStore(SqlStoreConfig(database_url="postgresql://user:pw@host/db"))
store.create_all()  # creates nodus_runs, nodus_events, nodus_jobs tables

now = datetime.now(timezone.utc)
store.runs.create(RunRecord("run-001", "flow", "pending", None, "trace-abc",
                             None, "user-1", None, 1, now, now))
run = store.runs.get("run-001")

Async

from nodus_store_sql import AsyncSqlStore, SqlStoreConfig

store = AsyncSqlStore(SqlStoreConfig(database_url="postgresql+asyncpg://..."))
await store.create_all()
await store.runs.create(run_record)

Tables

Table Store Purpose
nodus_runs RunStore Execution lifecycle with optimistic locking
nodus_events EventStore Append-only audit trail with causal chains
nodus_jobs JobStore Background job queue with atomic claiming

Metadata

Release files for nodus-store-sql 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nodus-store-sql 0.1.0
File Size Uploaded
nodus_store_sql-0.1.0.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nodus-store-sql 0.1.0
File Interpreter ABI Platform
nodus_store_sql-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.4 kB

Release files / nodus_store_sql-0.1.0.tar.gz

Download URL nodus_store_sql-0.1.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2ea950c6eb522f9da14bd1b93a79f7ce09c45812606416c55998262f9cb2933d
BLAKE2b-256 checksum
How to use checksums
082bbffff01ada6659a16a9c3e5b7f577793e20e4e472987831492736cfbf39c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / nodus_store_sql-0.1.0-py3-none-any.whl

Download URL nodus_store_sql-0.1.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
193ed28085a0b12c0bd3271eec5e0fcd8c0f1e92c8dac27b07cdaf009641ee6f
BLAKE2b-256 checksum
How to use checksums
5241a2f90572519a03ce376d756e68462cdaffbc29d31b32128e14ab7e28f5f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page