Skip to main content

Typed Python client for the SKI Framework SKI Model, with one-call provenance verification.

Project description

ski-sdk

Install from PyPI: pip install ski-sdk (publishing starts with the first release after June 2026).

Typed Python client for the SKI Framework SKI Model, with one-call verification of a verdict's signed provenance.

Status: early alpha. This wraps an alpha HTTP API; pin your versions. The SDK is versioned independently of the framework — see the compatibility note in the docs.

from ski_sdk import SKIClient

client = SKIClient(endpoint="https://ski.internal:8000", api_key="…")
env = client.evaluate(
    measurement_id="m-001",
    timestamp="2026-06-05T12:00:00Z",
    subject="stack-7",
    measurement={"so2_ppm": 150},
)
print(env.verdict, [c.node_id for c in env.kg_citations])  # FLAG ['energy.so2.lte_100ppm']

Verify a verdict's signed transcript (tamper-evident provenance):

from ski_sdk import verify_transcript

report = verify_transcript(transcript, public_key_pem)
assert report.ok  # signature valid AND recorded hashes match the canonical pair

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

ski_sdk-0.1.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

ski_sdk-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file ski_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: ski_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ski_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ff780611157138fb51fa5598efafc3558ea8cbb5d0cf17edcac696bebf0d3a20
MD5 3fe74c80e689cf14bbdad2e50c2191b2
BLAKE2b-256 3cffca3f302cd23ad13e36464768d7cac905af1ea8613ebed5c7f9d01f28179f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ski_sdk-0.1.0.tar.gz:

Publisher: release.yml on kpifinity/ski-framework

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

File details

Details for the file ski_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ski_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ski_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aea8c73c1c2b567f09be882b47611f2752c96dc3d9e0faca887e3eb7f8442e6d
MD5 58c15c22d57b2bd3ce6d75eaeef2d97b
BLAKE2b-256 0dc6e3641fe69d3b8d497465bb8cf9dd6288baa28961b89ea71590ae341f9857

See more details on using hashes here.

Provenance

The following attestation bundles were made for ski_sdk-0.1.0-py3-none-any.whl:

Publisher: release.yml on kpifinity/ski-framework

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