Skip to main content

sjdbl – Seecr Json Database Lib

Stores Python objects as plain JSON files: one file per object, one directory per class. Crash-safe transactions, revisions against lost updates, lazy references, sequential numbers. No server, no query language: searching belongs in an index that can be rebuilt from the files at any time.

from pathlib import Path

from sjdbl import Store
from sjdbl.base import Base
from sjdbl.field import Field


class Person(Base):
    FIELDS = [Field.str("name"), Field.date("dob"), Field.reference("parent")]


store = Store(path=Path("data"), models=[Person])
john = Person.create(name="John Smith")
store.put(john)                              # data/Person/<id>.json

with store.transaction():                    # all of it, or nothing
    john.update(name="John Doe")
    store.put(john, Person.create(name="Joe", parent=john))
  • Plain text. Every object is a readable, indented JSON file: cat, grep, diff and fix it by hand.
  • No server. A store is a directory; a backup is a copy of it.
  • Crash safe. A transaction is in the files completely or not at all, also when the machine dies halfway.

Install with pip install sjdbl. It needs Python 3.11 or newer, lxml and pytest (the tests are part of the package).

The reference describes everything; examples has runnable scripts; the changelog says what changed.

MIT licensed, see LICENSE. By Seecr.

Metadata

Release files for sjdbl 0.6.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 sjdbl 0.6.0
File Size Uploaded Provenance Actions
sjdbl-0.6.0.tar.gz 30.7 kB With provenance Details for sjdbl-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sjdbl 0.6.0
File Interpreter ABI Platform Actions
sjdbl-0.6.0-py3-none-any.whl Python 3 none any Details for sjdbl-0.6.0-py3-none-any.whl

Total release size: 52.3 kB

Release files / sjdbl-0.6.0.tar.gz

Download URL sjdbl-0.6.0.tar.gz
Size 30.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b773d71647158fb75bd1b9c1e0dad2e09479a4edd2e028ce6b7c12ee61f71bb5
BLAKE2b-256 checksum
How to use checksums
c684a1d899e344920d256e368356af01851ced3cfc4c400bbe7e93c9ece108b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / sjdbl-0.6.0-py3-none-any.whl

Download URL sjdbl-0.6.0-py3-none-any.whl
Size 21.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e104bf3038214e4e9af79db8008db61b7aad0f5e61fdeeb75e8bca64b390601a
BLAKE2b-256 checksum
How to use checksums
9b57278fab400b3012abeb911726c28f32cad085148d6e7550a78221f923b42e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for sjdbl 0.6.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sjdbl-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files Full provenance

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