Generic contract loading, resolution, and validation machinery for Structural Explainability contract repositories.
Project description
SE Contract Kit
Provides generic contract loading, resolution, and validation machinery for Structural Explainability contract repositories.
It is a Python package and command-line tool.
Role
Owns reusable machinery for contract repositories. It does not own Accountable Record, Judicial Record, Civic Record, or any domain-specific contract content.
Package
uv add se-contract-kit
Command
uv run se-contract-kit check --strict
Source layout
base/ Dependency-free utilities for errors, file IO, JSON, and paths.
declarations/ Load repository manifest and contract declarations.
resolution/ Resolve dependencies, artifacts, authorities, lockfiles, and run context.
validation/ Run generic contract checks and produce validation results.
cli.py Command-line entry point.
Command Reference
Show command reference
In a machine terminal
Open a machine terminal where you want the project:
git clone https://github.com/structural-explainability/se-contract-kit
cd se-contract-kit
code .
In a VS Code terminal
uv self update
uv python pin 3.14
uv sync --extra dev --extra docs --upgrade
uvx pre-commit install
git add -A
uvx pre-commit run --all-files
# repeat if changes were made
git add -A
uvx pre-commit run --all-files
# validate manifest
uv run se-manifest validate-manifest --path MANIFEST.toml --strict
# run contract-kit checks
uv run se-contract-kit check --strict
# types, tests, docs
uv run python -m pyright
uv run python -m pytest
uv run python -m zensical build
# save progress
git add -A
git commit -m "update"
git push -u origin main
Citation
License
Manifest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file se_contract_kit-0.1.0.tar.gz.
File metadata
- Download URL: se_contract_kit-0.1.0.tar.gz
- Upload date:
- Size: 85.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e37e91394fbbd4080887168621c8a98d86ce0583e357f16b783929f459e454c
|
|
| MD5 |
0cb3960ef6a88dd40328a3d7a33a6070
|
|
| BLAKE2b-256 |
d56cf1f8e11aaaadf4f62157ddd322174295b21dcce4408d7bfa6766e840138d
|
Provenance
The following attestation bundles were made for se_contract_kit-0.1.0.tar.gz:
Publisher:
release-pypi.yml on structural-explainability/se-contract-kit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
se_contract_kit-0.1.0.tar.gz -
Subject digest:
6e37e91394fbbd4080887168621c8a98d86ce0583e357f16b783929f459e454c - Sigstore transparency entry: 1615871756
- Sigstore integration time:
-
Permalink:
structural-explainability/se-contract-kit@b0bfe8cbd849d3f3afb2d8945763f05af8d5b5a0 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/structural-explainability
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@b0bfe8cbd849d3f3afb2d8945763f05af8d5b5a0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file se_contract_kit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: se_contract_kit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 38.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1be023117f11149e95f254ea1e6fd8f1f4c7d9cb1618c2da069767fa38460fc
|
|
| MD5 |
326295cf865e444b00daccc05dd9112b
|
|
| BLAKE2b-256 |
d04ce8915c7c0cc03fd4692bf4e69c90e81917793198825933721ee02259e1a4
|
Provenance
The following attestation bundles were made for se_contract_kit-0.1.0-py3-none-any.whl:
Publisher:
release-pypi.yml on structural-explainability/se-contract-kit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
se_contract_kit-0.1.0-py3-none-any.whl -
Subject digest:
b1be023117f11149e95f254ea1e6fd8f1f4c7d9cb1618c2da069767fa38460fc - Sigstore transparency entry: 1615871769
- Sigstore integration time:
-
Permalink:
structural-explainability/se-contract-kit@b0bfe8cbd849d3f3afb2d8945763f05af8d5b5a0 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/structural-explainability
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@b0bfe8cbd849d3f3afb2d8945763f05af8d5b5a0 -
Trigger Event:
push
-
Statement type: