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

Built distribution (wheel)

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

Total release size: 79.0 kB

Release files / zhizong-0.3.1.tar.gz

Download URL zhizong-0.3.1.tar.gz
Size 44.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1574ac775f676e5b05fedfb81d142a197049235a26cca796962a65a73332db9d
BLAKE2b-256 checksum
How to use checksums
b5b93846ecc06f1dacdc98b964020d0e6251bf5c690a90d350eccc91b4648dff
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.1-py3-none-any.whl

Download URL zhizong-0.3.1-py3-none-any.whl
Size 34.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f4d35f2c43e333ec731da233306efee92124161e1509a55838bde31f4349f30
BLAKE2b-256 checksum
How to use checksums
17e46d99baf816ee77a45a68ab8cd6ba769a8cf14e9e04da0cd6eadb910f2b53
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.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.3.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 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