cq-schema
Canonical JSON Schemas and parsed scoring values for cq.
This package ships:
- The JSON Schema documents that define the cq wire format (knowledge units, scoring, query/propose/confirm/flag/review payloads, health, stats).
- Parsed scoring constants (relevance weights, confidence bounds) drawn from
scoring.values.json.
The package deliberately ships no JSON Schema validator. Consumers that need runtime validation can pass load_schema_bytes(name) (or load_schema(name)) to their preferred library (e.g. jsonschema).
Usage
import json
import jsonschema
from cq_schema import (
CONFIRMATION_BOOST,
DOMAIN_WEIGHT,
INITIAL_CONFIDENCE,
load_schema,
load_schema_bytes,
)
# Parsed constants (immutable; treat as read-only).
print(DOMAIN_WEIGHT, INITIAL_CONFIDENCE, CONFIRMATION_BOOST)
# Raw schema documents.
schema = load_schema("knowledge_unit")
jsonschema.validate(instance=my_unit, schema=schema)
# Or as bytes if your validator prefers.
raw = load_schema_bytes("scoring")
Metadata
Release files for cq-schema 0.3.1
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 | |
|---|---|---|---|---|
| cq_schema-0.3.1.tar.gz | 10.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cq_schema-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.0 kB
Release files / cq_schema-0.3.1.tar.gz
| Download URL | cq_schema-0.3.1.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f07b603dfb6914fbf9a62513b3dd28f41e5f00004da787baec5def5e52dbb2df
|
|
BLAKE2b-256 checksum How to use checksums |
bf27759dc9fab647ff179f6efaef15da2ad6f5fdc7aecb34357747fa2fdb0694
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jul 30, 2026.
Transparency logRelease files / cq_schema-0.3.1-py3-none-any.whl
| Download URL | cq_schema-0.3.1-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4401791e27f42546b9a76e8fba14ae629dea9c025429578f35bbcde7f74d2c12
|
|
BLAKE2b-256 checksum How to use checksums |
7981b97688562c29632cde18ec6f71ba93556ebe40e1a4a253d9119fcc58c20c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jul 30, 2026.
Transparency logSecurity for cq-schema 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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for cq_schema-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 Jul 30, 2026.
Transparency logA 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.