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
v2.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 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reg_schema-2.0.0.tar.gz | 56.1 kB | Without provenance | Details for reg_schema-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reg_schema-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for reg_schema-2.0.0-py3-none-any.whl |
Total release size: 80.7 kB
Release files / reg_schema-2.0.0.tar.gz
| Download URL | reg_schema-2.0.0.tar.gz |
|---|---|
| Size | 56.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8800e9158c28253f5644de5bd9d71b74ee72611c3009d7b9ee5adf88dece7cc
|
|
BLAKE2b-256 checksum How to use checksums |
b626d3df88b200b47c039b5dd5e9addc74852b61e2039574d913c3b0d5e42eeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / reg_schema-2.0.0-py3-none-any.whl
| Download URL | reg_schema-2.0.0-py3-none-any.whl |
|---|---|
| Size | 24.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a3e3bbcc27d7d1252580ceede2abedd963581e09882ab00a2a1a9ce752627d7
|
|
BLAKE2b-256 checksum How to use checksums |
a2d64992dc4dedd85c52a870ec05760b64e1ac3ef49d339d4534e43849197e72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for reg-schema 2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.