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.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 zhizong 0.4.1
File Size Uploaded Provenance Actions
zhizong-0.4.1.tar.gz 47.6 kB With provenance Details for zhizong-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 83.9 kB

Release files / zhizong-0.4.1.tar.gz

Download URL zhizong-0.4.1.tar.gz
Size 47.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e759e4f1a4b9fa4284d9ddadb21f49974a2b843760d8a273af821d6ee6584080
BLAKE2b-256 checksum
How to use checksums
a437bcbaf0daa9bf3482a883b1e2a794f45c8cd45558d634b0e7435d4db74fc5
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.1-py3-none-any.whl

Download URL zhizong-0.4.1-py3-none-any.whl
Size 36.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
106b93cac1f4f2fe7dd94a50c1d663c7b742b389115d854a8e2be2651d78cae2
BLAKE2b-256 checksum
How to use checksums
1bec1bdcfe7face51a8c6ad2fa0049ff561e56ebc441b3fdf080e16c82de8b93
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.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 zhizong-0.4.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 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