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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b47ee23f990c09dee103ba37481cac8fae4fd68bfc8da338e7beaaa9ff8381c
|
|
| MD5 |
ac62c2e27028703d94294935ddf2e1e4
|
|
| BLAKE2b-256 |
dbb8f65dbaf60e2e146b5346c02935fca59a2448c916d834554db5ad74c8b3c5
|
Provenance
The following attestation bundles were made for fitctl-0.1.1.tar.gz:
Publisher:
release.yaml on tznurmin/fitctl-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fitctl-0.1.1.tar.gz -
Subject digest:
1b47ee23f990c09dee103ba37481cac8fae4fd68bfc8da338e7beaaa9ff8381c - Sigstore transparency entry: 2775290971
- Sigstore integration time:
-
Permalink:
tznurmin/fitctl-python@a9ac3a81acb034fa8e9086838fe90d67afab8250 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tznurmin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@a9ac3a81acb034fa8e9086838fe90d67afab8250 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file fitctl-0.1.1-cp312-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: fitctl-0.1.1-cp312-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.12+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b81e0faced9048222aa668e62b601fc4be9ac05655a2598b797216dcb8a3993f
|
|
| MD5 |
cfe0e2e471350154bc358fb812900440
|
|
| BLAKE2b-256 |
a85cfe18295230ec25242327035aaf5087d186e20c292af001759648cb268bed
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fitctl-0.1.1-cp312-abi3-manylinux_2_28_x86_64.whl -
Subject digest:
b81e0faced9048222aa668e62b601fc4be9ac05655a2598b797216dcb8a3993f - Sigstore transparency entry: 2775291017
- Sigstore integration time:
-
Permalink:
tznurmin/fitctl-python@a9ac3a81acb034fa8e9086838fe90d67afab8250 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tznurmin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@a9ac3a81acb034fa8e9086838fe90d67afab8250 -
Trigger Event:
workflow_dispatch
-
Statement type: