Skip to main content

kcidb-io

kcidb-io is a Python 3 library for validating and manipulating Linux Kernel CI reports in JSON format. This library is used by kcidb - a package for maintaining a service storing and serving that data.

Installation

kcidb-io requires Python v3.10 or later.

To install the latest version from PyPI:

pip3 install kcidb-io

To install from the git repository:

pip3 install git+https://github.com/kernelci/kcidb-io.git

To install from a local directory:

pip3 install .

Using

Here's an example creating an empty report and then validating it:

# Import the kcidb-io package
import kcidb_io
# Create an empty report using the latest schema version
json = kcidb_io.new()
# Validate the report
kcidb_io.schema.validate(json)

Exporting the JSON schema

The current schema is available as a JSON Schema dictionary on the version class. The latest schema is exposed as kcidb_io.schema.LATEST.

Export the latest schema to a file:

python3 - <<'PY'
import json
from kcidb_io import schema

v = schema.LATEST
with open(f"kcidb-io.schema.v{v.major}.{v.minor}.json", "w") as f:
    json.dump(v.json, f, indent=2, sort_keys=True)
PY

Compatibility notes

The schema is validated in this library using JSON Schema Draft-07. The exported schema JSON does not include a $schema field; if a validator requires one, add:

{
  "$schema": "http://json-schema.org/draft-07/schema#"
}

The schema uses $defs and the uri string format. If your validator supports format checking, enable it to validate uri values.

Hacking

If you want to hack on the source code, install the package in the editable mode with the -e/--editable option, and with "dev" extra included. E.g.:

pip3 install --user --editable '.[dev]'

The latter installs the kcidb-io package using the modules from the source directory, and changes to them will be reflected immediately without the need to reinstall. It also installs extra development tools, such as flake8 and pylint.

Release files for kcidb-io 140

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kcidb-io 140
File Size Uploaded
kcidb_io-140.tar.gz 114.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kcidb-io 140
File Interpreter ABI Platform
kcidb_io-140-py3-none-any.whl Python 3 none any Details

Total release size: 256.2 kB

Release files / kcidb_io-140.tar.gz

Download URL kcidb_io-140.tar.gz
Size 114.8 kB
Tags Source
SHA-256 checksum
How to use checksums
023b1338ca40fd0b66daec1824e38d84dd8c8262421e9a1f94f466e7525c579b
BLAKE2b-256 checksum
How to use checksums
3fc7bf2c2491a8a298a9784102aeb135e0b4ac38a2d3c925c90cb522069c0517
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 31, 2026.

Transparency log

Release files / kcidb_io-140-py3-none-any.whl

Download URL kcidb_io-140-py3-none-any.whl
Size 141.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e6c556868f8c77b98de38fd5c8842cbec9fc8385915929898071f0dbef0df12
BLAKE2b-256 checksum
How to use checksums
a50a18ef028ecf48a890d2a0a521bf9a5e283ceb28e4580d78200e439f49e5a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 31, 2026.

Transparency log

Release history Release notifications | RSS feed

141

2 release files

This release

140 This release

2 release files

139

2 release 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