Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

reg_schema

project_data.json schema and structural validator. Importable by the webapp and the SPA (via TS codegen).

Python ≥3.14. One runtime dependency: Pydantic v2 (the deliberate exception to the workspace no-Pydantic rule); the structural validator itself operates on raw dicts and needs no third-party deps. See DESIGN.md for scope and dependency direction.

Status

v3.0.0 — Model A grammar. The surface: the §6.8.0 cross-runtime contract (ValidationIssue, ValidationResult), the Pydantic v2 models (ProjectData, Source, Binding, Panel, PanelMember, Period, PeriodRange, LiteralPeriod, plus the EntityKey / TimeKey / TimePoint aliases), and the unified validate_structural() entrypoint implementing §6.8.1. See DESIGN.md for the issue-code table.

import json

from reg_schema import validate_structural

with open("project_data.json") as f:
    spec = json.load(f)

result = validate_structural(spec)
if not result.ok:
    for issue in result.issues:
        if issue.level == "error":
            print(f"{issue.path}: {issue.code} — {issue.message}")

The validator operates on a parsed dict, not on the Pydantic models, because rules like "type is one of the enum values" must fire on raw JSON values before any Literal cast.

Metadata

Release files for reg-schema 3.0.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 reg-schema 3.0.0
File Size Uploaded Provenance Actions
reg_schema-3.0.0.tar.gz 56.8 kB With provenance Details for reg_schema-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reg-schema 3.0.0
File Interpreter ABI Platform Actions
reg_schema-3.0.0-py3-none-any.whl Python 3 none any Details for reg_schema-3.0.0-py3-none-any.whl

Total release size: 81.3 kB

Release files / reg_schema-3.0.0.tar.gz

Download URL reg_schema-3.0.0.tar.gz
Size 56.8 kB
Tags Source
SHA-256 checksum
How to use checksums
20902ef6f4af5ae79305d581b018a2c5efd8034d43af75eb8702e72842a23316
BLAKE2b-256 checksum
How to use checksums
e2a5dd767cece9f7e59229f9b8b7a05d5f9753f7e344ec08554b80cd9852d8d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 9, 2026.

Transparency log

Release files / reg_schema-3.0.0-py3-none-any.whl

Download URL reg_schema-3.0.0-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4696f8aafe9054e90428fcf39829baba7fc3b8587b8ebaf50bfa3a3d88f20b08
BLAKE2b-256 checksum
How to use checksums
b1716ca1c69dc47de667d75ba92fd9077af569ef692c803a8e65528be5069b51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 9, 2026.

Transparency log

Security for reg-schema 3.0.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 reg_schema-3.0.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 Sep 9, 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