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.0 uses fitctl-core 0.8.0.

Install

The wheel supports standard CPython 3.13.x on Linux x86_64 with glibc 2.28 or newer. Other Python versions, free-threaded Python, macOS and Windows are not supported by this release.

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

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.0.tar.gz (179.3 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.0-cp313-cp313-manylinux_2_28_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

File details

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

File metadata

  • Download URL: fitctl-0.1.0.tar.gz
  • Upload date:
  • Size: 179.3 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.0.tar.gz
Algorithm Hash digest
SHA256 51f7dd53a658e02bc0ed419c110d7e3470885fd40f92a46f78ac7538bb68067a
MD5 9a8c94092fb711abb5faf66abde98d33
BLAKE2b-256 a160dea4f22beb534eecb8fbd84e454b9e711aa14e5e6ad3f60ea6df5248bb59

See more details on using hashes here.

Provenance

The following attestation bundles were made for fitctl-0.1.0.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.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fitctl-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1c5d9cf228f0df286acff6de4ac9a7f369e06476e13ee6d61820afe55ff1ff00
MD5 5adbff128f51b35e6d24c7c4cb3b4924
BLAKE2b-256 76b08caa007749d4e708b2d8703cce6344a5356008c9b40329a2729a1af4679e

See more details on using hashes here.

Provenance

The following attestation bundles were made for fitctl-0.1.0-cp313-cp313-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

0.1.1

2 files

This release

0.1.0 This release

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