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.1

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.1
File Size Uploaded Provenance Actions
pytypehintstore-1.1.1.tar.gz 106.1 kB With provenance Details for pytypehintstore-1.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 120.3 kB

Release files / pytypehintstore-1.1.1.tar.gz

Download URL pytypehintstore-1.1.1.tar.gz
Size 106.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ed7c4834ed0dac4f535a04e0d80998a6158c61cf0bc36f1d806e8585909680f2
BLAKE2b-256 checksum
How to use checksums
7367875f118f07944624ba56ab8d25af2f1d3d02d8a481ce938acbdb982cf40b
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.1-py3-none-any.whl

Download URL pytypehintstore-1.1.1-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7edb4cdc72da9a58912e5abad2dee4b232a0b8a2aa825b68e1a8d7e986e2ab1
BLAKE2b-256 checksum
How to use checksums
085a3b3c335104595b3da1915cc211545f64b140f753a74b2f62002aa6f6d938
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.1

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.1.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