Skip to main content

pytypehintstore

Rows of one validated dataclass, in memory, shadowed by a JSON file you can open and edit. The class is the database.

The file is named for the class and the fingerprint of its compiled schema, so if the file opens, every row in it is valid against this exact schema. Change the contract and it is a new database; the old file stays beside it, whole and readable.

from dataclasses import dataclass
from typing import Annotated
from pytypehint import Max, Min
from pytypehintstore import store_of

@dataclass
class Task:
    title: Annotated[str, Min(1), Max(80)]
    done: bool = False

tasks = store_of(Task, "data")              # data/Task.<fingerprint>.json
row_id = tasks.add(Task(title="Buy milk"))  # 1
tasks.get(row_id)                           # Task(title='Buy milk', done=False)
tasks.close()

The full documentation is at https://offerrall.github.io/pytypehintstore/.

Documentation

  • Overview: how the store works and a full walk-through of its operations.
  • The guarantee: every row a store opens was rebuilt through your schema.
  • The identity: the file name, and why any change to the class is a new database.
  • The file: the JSON on disk, editing it by hand, and every load error.
  • Writing: debounced, atomic dumps, rotated copies and close().
  • The lock: one process per store, and how orphaned lockfiles are taken over.
  • API: store_of, its methods and its exceptions.
  • Limits: what the store does not do, stated plainly.

Metadata

Release files for pytypehintstore 1.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 pytypehintstore 1.1.0
File Size Uploaded Provenance Actions
pytypehintstore-1.1.0.tar.gz 105.3 kB With provenance Details for pytypehintstore-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 119.0 kB

Release files / pytypehintstore-1.1.0.tar.gz

Download URL pytypehintstore-1.1.0.tar.gz
Size 105.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2a35bb3df3504f1e6d295551bcfa9335bc7fd792fb2ff742c4c326ad743eabf9
BLAKE2b-256 checksum
How to use checksums
83d594ca4bbadab45e5e6d16bcb807cc4c219a05f27fb2b3247ad41b27eb485d
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 25, 2026.

Transparency log

Release files / pytypehintstore-1.1.0-py3-none-any.whl

Download URL pytypehintstore-1.1.0-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abe497c8066c355498d92ccf4ec9fff88347ba052be6e80640756a7fd4c884c6
BLAKE2b-256 checksum
How to use checksums
f3a0d7efae874ead89281de7d9f09212917f64aa9e7ffd83f5d541a63458f0ef
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 25, 2026.

Transparency log

Security for pytypehintstore 1.1.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 pytypehintstore-1.1.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 25, 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