Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

qcstore

A store for quantum chemistry results. Every run of every calculation is kept as plain JSON you can read with cat and jq, filed under the calculation's key, and nothing is ever overwritten or deleted. Many processes can write to one store at once, on a local disk or NFS, without locks, and a writer killed mid-write leaves nothing a reader trusts.

qcstore depends only on qcdata and the Python standard library.

Install

pip install qcstore

Five minutes

A store files each calculation under its key, qcdata.calculation_key(inp): the input alone. Each run also records the numerics identity of every program that produced it ({"xtb": "6.7.1"}), so results of different code stay apart while the key stays the same across releases.

from qcdata import ProgramInput, ProgramOutput, SinglePointData, Structure
from qcstore import Store

water = Structure(
    symbols=["O", "H", "H"],
    geometry=[[0.0, 0.0, 0.0], [0.0, 1.43, 1.11], [0.0, -1.43, 1.11]],  # bohr
)
inp = ProgramInput(
    program="xtb", calctype="energy", structure=water, model={"method": "gfn2"}
)
output = ProgramOutput(
    input_data=inp,
    success=True,
    logs="normal termination of xtb\n",
    results=SinglePointData(
        provenance={"program": "xtb", "program_version": "6.7.1"}, energy=-5.07
    ),
)

store = Store("./store")
run = store.put(output, {"xtb": "6.7.1"}, tags=["demo"], meta={"by": "readme"})

key = store.key(inp)
store.get(key)                     # the latest success, whatever produced it
store.get(key, {"xtb": "6.7.1"})   # only a run of xtb 6.7.1
store.get(key, {"xtb": "6.8.0"})   # None: never run with 6.8.0
store.blob(key, "logs")            # b"normal termination of xtb\n"

A new release that gives the same results need not rerun anything: carry the runs to the new identities, with the evidence. The evidence is stored once, however many runs it covers, and asserts that each run's whole output is what the new code would produce.

store.carry([(key, run)], {"xtb": "6.8.0"}, {"benchmark": "S22", "max_abs_diff": 0.0})
store.get(key, {"xtb": "6.8.0"})   # the 6.7.1 run, valid for 6.8.0 too

A wrong result is withdrawn, not deleted:

store.withdraw(key, run, "wrong geometry")
store.get(key)                     # None: no other run
for r in store.runs(key):
    print(r.id, r.success, r.identities, r.withdrawn.reason)

Questions across calculations go to an optional SQLite index, kept up to date from the store's journals:

index = store.index()
index.query(tag="demo", program="xtb")
index.query(identities={"xtb": "6.8.0"})   # every run valid under xtb 6.8.0
index.sql(
    "SELECT formula, COUNT(DISTINCT key) AS calculations FROM runs GROUP BY formula"
)

With qccompute, a store caches calculations: qccompute.compute(inp, store=store) returns a stored result when one from the same code exists, and stores what it runs.

On disk

store/
  records/3f/k1:3f9a.../               one directory per calculation
    current.json                       the preferred run, overall and per identity set
    tags/demo                          an empty file per tag
    20261117T101500.123456Z-7c1e9a0b/  one directory per run, never changed
      record.json                      identities, meta, and the output
      blobs/output.logs                logs, files and large arrays, named by JSON path
      carries/9c1f...                  an empty marker per carry of this run
      withdrawn.json                   who withdrew it, when, and why
  carries/9c1f....json                 a carry: "also valid for xtb 6.8.0", the evidence
  journals/<writer>/<batch>.jsonl      what each writer changed, for the index
  index.sqlite                         the optional index, rebuildable at any time

python -m qcstore verify ./store checks every record: keys, blob digests, pointers.

Documentation

qcstore.docs.afh.org: the API, and the design: the layout, how writers agree without locks, and what a crash can and cannot leave behind.

Metadata

Release files for qcstore 0.1.0a1

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

Source distribution (sdist)

Source distribution for qcstore 0.1.0a1
File Size Uploaded Provenance Actions
qcstore-0.1.0a1.tar.gz 158.5 kB With provenance Details for qcstore-0.1.0a1.tar.gz

Built distribution (wheel)

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

Total release size: 183.9 kB

Release files / qcstore-0.1.0a1.tar.gz

Download URL qcstore-0.1.0a1.tar.gz
Size 158.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f57792192eeb5dcaf13f2d8fece5cc8e549467e49a32805fdfe5f4a439bb1136
BLAKE2b-256 checksum
How to use checksums
def25fd39e016a444117145c7290366cff6ff4c41678cde7cef44fffc2f6eb45
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 17, 2026.

Transparency log

Release files / qcstore-0.1.0a1-py3-none-any.whl

Download URL qcstore-0.1.0a1-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8563a00b8a89d8f8229db29e0725aeffa3e9e1c60d0958680e6bf16b0670ce9
BLAKE2b-256 checksum
How to use checksums
c80afff9a57a12ac339c84c5efdaba6ffe6630823f7d7ace5f713c837fc1b145
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 17, 2026.

Transparency log

Security for qcstore 0.1.0a1

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 qcstore-0.1.0a1.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 17, 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.

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