Skip to main content

秩宗 (zhizong)

A contract validation tool that validates a corpus of contract documents against the grammar shipped inside the package.

Installation

pip install zhizong

Usage

zhizong validate [--config PATH]
zhizong --version

Configuration

Key Required Default Description
namespace Yes - The namespace identifier for the contract documents
contracts_root No contracts The root directory containing contract documents

Grammar Specification

The normative format specification is defined in src/zhizong/versions/1.yaml.

Field-Table Type Vocabulary

Field-table Type expressions compile to JSON Schema (draft 2020-12):

Expression Compiles to One-line example
string / integer / number / boolean the bare JSON type {"type": "string"}
object (with Fields) nested object schema {"type": "object", ...}
array<T> array of T, nestable array<string> → {"type": "array", "items": {"type": "string"}}
scalar / record structure name the referenced structure's schema (records via $defs/$ref) FeedId
T? nullable: T or null MediaFile? → {"anyOf": [{"type": "string", "pattern": ...}, {"type": "null"}]}
`a b c`

Notes:

  • ? composes with any inner form and is stripped before reference lookup: integer?, MediaFile?, array<object>? (nullable array — distinct from array<object?>, nullable items).
  • | alternatives must be bare literals (^[A-Za-z0-9_.-]+$) and split outside any <>; parentheses grouping a whole expression are pure syntax: (pending|ok)? is a nullable enum.
  • Required: true is orthogonal to ?: a nullable-but-required field's key must exist, its value may be null.

Metadata

Release files for zhizong 0.3.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 zhizong 0.3.0
File Size Uploaded Provenance Actions
zhizong-0.3.0.tar.gz 44.2 kB With provenance Details for zhizong-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 78.9 kB

Release files / zhizong-0.3.0.tar.gz

Download URL zhizong-0.3.0.tar.gz
Size 44.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bd0cc24369de9c0c27bc0c00a7c71d81de5d12a02c46ce64442f69c0a82503eb
BLAKE2b-256 checksum
How to use checksums
124a4b0c708f04002f29dba564ea061dd2659267e870fe348eaff2577afab1cc
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 Aug 27, 2026.

Transparency log

Release files / zhizong-0.3.0-py3-none-any.whl

Download URL zhizong-0.3.0-py3-none-any.whl
Size 34.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2bd40906f04c370f49d2e668ea69d1b158af670616650e19d2e20db1d9205f0
BLAKE2b-256 checksum
How to use checksums
ebc999b288ca52958f505f4f48f8f7a5df0571a927629a36a6ec35eb7b8966c9
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 Aug 27, 2026.

Transparency log

Security for zhizong 0.3.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 zhizong-0.3.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 Aug 27, 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