Skip to main content

fitctl Python bindings

Use fitctl from Python to collect host evidence and check whether a host meets a workload's requirements.

The bindings call fitctl-core directly. You do not need the fitctl command-line tool. Version 0.1.1 uses fitctl-core 0.8.0.

Install

Requires Python 3.12 or newer. The wheel is tested with ordinary CPython 3.12, 3.13 and 3.14 on Linux x86_64 with glibc 2.28 or newer. It requires the GIL; free-threaded Python, macOS and Windows are not supported by this release.

python3 -m venv .venv
.venv/bin/python -m pip install fitctl==0.1.1

Collect host evidence

import fitctl

survey = fitctl.collect_survey()
print(survey.to_json())

This collects one snapshot of the local host. Importing the package does not collect anything or start a background monitor.

Use saved evidence

Load a fitctl JSON artifact without contacting the host it describes:

from pathlib import Path
import fitctl

survey = fitctl.Artifact.from_json(
    Path("host.survey.json").read_text(encoding="utf-8")
)
print(survey.artifact_id)

See recorded evidence and decisions to derive a contract and validate it, batch comparison to compare several inputs, and evidence collection for storage and sensor checks.

Licensed under Apache 2.0. Third-party licenses and notices are in THIRD_PARTY_LICENSES.txt.

Download files

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

Source Distribution

fitctl-0.1.1.tar.gz (180.8 kB view details)

Uploaded Source

Built Distribution

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

fitctl-0.1.1-cp312-abi3-manylinux_2_28_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ x86-64

File details

Details for the file fitctl-0.1.1.tar.gz.

File metadata

  • Download URL: fitctl-0.1.1.tar.gz
  • Upload date:
  • Size: 180.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fitctl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1b47ee23f990c09dee103ba37481cac8fae4fd68bfc8da338e7beaaa9ff8381c
MD5 ac62c2e27028703d94294935ddf2e1e4
BLAKE2b-256 dbb8f65dbaf60e2e146b5346c02935fca59a2448c916d834554db5ad74c8b3c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for fitctl-0.1.1.tar.gz:

Publisher: release.yaml on tznurmin/fitctl-python

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

File details

Details for the file fitctl-0.1.1-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fitctl-0.1.1-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b81e0faced9048222aa668e62b601fc4be9ac05655a2598b797216dcb8a3993f
MD5 cfe0e2e471350154bc358fb812900440
BLAKE2b-256 a85cfe18295230ec25242327035aaf5087d186e20c292af001759648cb268bed

See more details on using hashes here.

Provenance

The following attestation bundles were made for fitctl-0.1.1-cp312-abi3-manylinux_2_28_x86_64.whl:

Publisher: release.yaml on tznurmin/fitctl-python

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

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