Skip to main content

Generic contract loading, resolution, and validation machinery for Structural Explainability contract repositories.

Project description

SE Contract Kit

PyPI Docs Site Repo Python 3.14+ Python 3.15 Ready License

CI Docs-Deploy Release Links Dependabot

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

CITATION.cff

License

MIT

Manifest

MANIFEST.toml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

se_contract_kit-0.1.0.tar.gz (85.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

se_contract_kit-0.1.0-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

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

Hashes for se_contract_kit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6e37e91394fbbd4080887168621c8a98d86ce0583e357f16b783929f459e454c
MD5 0cb3960ef6a88dd40328a3d7a33a6070
BLAKE2b-256 d56cf1f8e11aaaadf4f62157ddd322174295b21dcce4408d7bfa6766e840138d

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for se_contract_kit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1be023117f11149e95f254ea1e6fd8f1f4c7d9cb1618c2da069767fa38460fc
MD5 326295cf865e444b00daccc05dd9112b
BLAKE2b-256 d04ce8915c7c0cc03fd4692bf4e69c90e81917793198825933721ee02259e1a4

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page