fair-bioheaders-tools
The FAIR-bioHeaders read/validate/verify engine (Rust) for Python: header framing, exact SHA-512/256 checksum coverage, portable YAML/JSON metadata with exact numbers, strict gzip/BGZF input, record-aware schema selection (V1-V7) over digest-pinned bundles, JSON Schema 2020-12 validation and family predicates for FASTA, GFA, FHP-FASTA and FHGFF3 files and YAML/JSON metadata.
import fair_bioheaders_tools as fht
engine = fht.Engine()
report = engine.verify("genome.fhr.fasta.gz")
print(report.outcome, report.checksum.computed)
for d in report.diagnostics:
print(d.severity, d.code, d.rule, d.header_line, d.message)
Verdicts are returned, never raised. Integers are exact int; decimals are
float unless Engine(exact_decimals=True) returns decimal.Decimal. The
default limits follow FAIR-bioHeaders-Specification docs/FORMAT.md; the 1 GiB
in_memory_decompressed_bytes bound for buffered input (metadata files, and
the header lines a sequence read retains, counted three times for their
copies; sequence bodies are streamed, not retained) can be lowered with
Engine(limits={"in_memory_decompressed_bytes": n}) or raised with
raise_limits=.
validate reading a path or file object stops once the header block has
ended, without reading the body (a live pipe is not waited on: a file
object with read1(), such as sys.stdin.buffer, is read with it, so a
buffered pipe returns as soon as the header block has arrived); verify
reads to the end. Push streams report the same point: Stream.feed() returns
True, after which finish() needs no more input. validate is header-only on
every source: bytes after the header block are never inspected, so a late FHR
line (R10) or gzip damage in the body is reported by verify only.
Installation
pip install fair-bioheaders-tools
Prebuilt wheels need no compiler. One cp39-abi3 wheel serves every CPython
3.9 or later on its platform (free-threaded CPython is not supported):
| Platform | Wheel tag | Tested on |
|---|---|---|
| Linux x86_64, glibc 2.28+ | manylinux_2_28_x86_64 |
Ubuntu 24.04, AlmaLinux 8 |
| Linux aarch64, glibc 2.28+ | manylinux_2_28_aarch64 |
Ubuntu 24.04, AlmaLinux 8 |
| Linux x86_64, musl | musllinux_1_2_x86_64 |
Alpine |
| Linux aarch64, musl | musllinux_1_2_aarch64 |
Alpine |
| macOS 11+ arm64 | macosx_11_0_arm64 |
macOS 15 |
| macOS 10.12+ x86_64 | macosx_10_12_x86_64 |
macOS 15 (Intel), while GitHub offers Intel runners |
| Windows x86_64 | win_amd64 |
Windows Server 2025 |
pip 20.3 or later is needed to recognise the manylinux_2_28 tag, and a more
recent pip for musllinux_1_2; if pip offers to build from source on one of
these platforms, upgrade pip first (python -m pip install --upgrade pip).
Elsewhere pip builds from the source distribution, which needs Rust 1.85
or later (cargo on PATH, for example from https://rustup.rs) and a C
linker. If no Rust is installed, the build backend (maturin) downloads a Rust
toolchain for the build by default; set MATURIN_NO_INSTALL_RUST=1 to forbid
that, in which case the build stops with "Cargo, the Rust package manager, is
not installed or is not on PATH". To refuse source builds entirely, install
with pip install --only-binary :all: fair-bioheaders-tools.
Identity and rollback
fair_bioheaders_tools.__version__ is the package version,
ENGINE_VERSION the Rust engine version and ABI_VERSION the engine ABI
(0.1 in 0.1.x); each report's provenance names the contract bundle and its
digest. Release files are listed with their SHA-256 in SHA256SUMS on the
GitHub Release
of the matching core-vX.Y.Z tag and carry build-provenance attestations
(gh attestation verify FILE -R FAIR-bioHeaders/FAIR-bioHeaders-Tools). Each
wheel ships LICENSE, the third-party notices (THIRD-PARTY-LICENSES.yaml)
and a CycloneDX SBOM in its .dist-info.
To roll back, pin the previous version (fair-bioheaders-tools==X.Y.Z). A bad
release is yanked on PyPI and replaced by a new version; files are never
replaced. Releases: crates/CHANGELOG.md.
Metadata
Release files for fair-bioheaders-tools 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fair_bioheaders_tools-0.1.0.tar.gz | 544.9 kB | With provenance | Details for fair_bioheaders_tools-0.1.0.tar.gz |
Built distributions (wheels)
Total release size: 25.4 MB
Release files / fair_bioheaders_tools-0.1.0.tar.gz
| Download URL | fair_bioheaders_tools-0.1.0.tar.gz |
|---|---|
| Size | 544.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb668453afeb44ee005aed3c23f1f3bd5a90d32c0f42ee85895e38248a119864
|
|
BLAKE2b-256 checksum How to use checksums |
aa1cfc5d09e3fcc474d8545124f4c378591a5bdf5f2674574ed7c6731923e0ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / fair_bioheaders_tools-0.1.0-cp39-abi3-win_amd64.whl
| Download URL | fair_bioheaders_tools-0.1.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 3.5 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7207d4fd9af1ba9d66135109a93f27fd45e0a0a2e21e723e1d19606cedd4b195
|
|
BLAKE2b-256 checksum How to use checksums |
983b6e1b42223d2a1d301871244363b665d59d03471cab27ffe2b251363f09d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / fair_bioheaders_tools-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | fair_bioheaders_tools-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 3.8 MB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
6ca885d68f8e2225f88798a9b7b49ab041f5316c992fcdfc8a86e595cc43abc4
|
|
BLAKE2b-256 checksum How to use checksums |
fd2cc0d38a3908cf75cf76c3146392e6d7b181034637ac4c9c36a609ebada7bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / fair_bioheaders_tools-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | fair_bioheaders_tools-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
457899b6640bcd7ef3fb1d0d1972282b8150072614d5f487b316fb331de470b7
|
|
BLAKE2b-256 checksum How to use checksums |
e308c57e977f57a62f62dfc0dfbe3ebf1c5368698c9c5fe5f54377caeb7b5a9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / fair_bioheaders_tools-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl
| Download URL | fair_bioheaders_tools-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
68ca17894ea8ee8812b3f99cbf6dad960dd7d89e3b72429780daafc8567a535a
|
|
BLAKE2b-256 checksum How to use checksums |
61be94c6ef15ba652352de1d0b4731eeb7196aedc07264c36dc369dbc1339d51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / fair_bioheaders_tools-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl
| Download URL | fair_bioheaders_tools-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 3.5 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
fe10b9d388c27eba877c1d25a4a1d5a4d0af1ddc612b057691ed3dfce80024f3
|
|
BLAKE2b-256 checksum How to use checksums |
178b4627c60dc52c66b3caa6a96f9d78454eea56324de80db2f3dbf757a07a6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / fair_bioheaders_tools-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | fair_bioheaders_tools-0.1.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
552ddb4af6a0ea4b3c6b2016230d5e38f9b81af52d20c84f0bf46aff7a3799d1
|
|
BLAKE2b-256 checksum How to use checksums |
6c76779707333112ac38218992b325b9fe95ef8307b822068868bcccbc221bad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / fair_bioheaders_tools-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | fair_bioheaders_tools-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 3.5 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
e8e984f7ed5e70fbffd19494f85de1eb5441eaf732051046b377456eaa8fc387
|
|
BLAKE2b-256 checksum How to use checksums |
6bc1257349cc04c94e5b37f0926051fa4e7320bb837370709a6e78bf228f66d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for fair-bioheaders-tools 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 8 files in this release have been uploaded with provenance metadata.
Attestation for fair_bioheaders_tools-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.