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.4.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.4.0
File Size Uploaded Provenance Actions
zhizong-0.4.0.tar.gz 46.5 kB With provenance Details for zhizong-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 82.3 kB

Release files / zhizong-0.4.0.tar.gz

Download URL zhizong-0.4.0.tar.gz
Size 46.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b34584b26db71d4207a9db35b56473b72ab92149384fe29ec37605af02687863
BLAKE2b-256 checksum
How to use checksums
643a7b1a4e414fa81df1b69207ebb1b9a4808be311013d0fbec9de8294b1d117
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 30, 2026.

Transparency log

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

Download URL zhizong-0.4.0-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efaeeea7c707c1213d579ccafff4be8cf7ecc8ad0507a4e59fe8002713884f88
BLAKE2b-256 checksum
How to use checksums
9801218b6498531210b36429537de3ff8d5c8f38eb772bdf4c07d7f9504a6cd0
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 30, 2026.

Transparency log

Security for zhizong 0.4.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.4.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 30, 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