{"id":21919798,"url":"https://github.com/kernelci/kcidb-io","last_synced_at":"2026-03-05T22:08:35.422Z","repository":{"id":41955710,"uuid":"299906038","full_name":"kernelci/kcidb-io","owner":"kernelci","description":"kernelci.org common reporting - I/O data library","archived":false,"fork":false,"pushed_at":"2026-01-31T23:44:32.000Z","size":142,"stargazers_count":2,"open_issues_count":17,"forks_count":11,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-02-01T10:55:07.122Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kernelci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-09-30T12:07:24.000Z","updated_at":"2026-01-31T23:44:36.000Z","dependencies_parsed_at":"2026-01-08T13:08:47.318Z","dependency_job_id":null,"html_url":"https://github.com/kernelci/kcidb-io","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/kernelci/kcidb-io","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fkcidb-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fkcidb-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fkcidb-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fkcidb-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kernelci","download_url":"https://codeload.github.com/kernelci/kcidb-io/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fkcidb-io/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30152089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T21:15:50.531Z","status":"ssl_error","status_checked_at":"2026-03-05T21:15:11.173Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T20:11:04.744Z","updated_at":"2026-03-05T22:08:35.413Z","avatar_url":"https://github.com/kernelci.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"kcidb-io\n========\n\n`kcidb-io` is a Python 3 library for validating and manipulating Linux Kernel\nCI reports in JSON format. This library is used by [`kcidb`][kcidb] - a\npackage for maintaining a service storing and serving that data.\n\nInstallation\n------------\n\n`kcidb-io` requires Python v3.10 or later.\n\nTo install the latest version from PyPI:\n\n    pip3 install kcidb-io\n\nTo install from the git repository:\n\n    pip3 install git+https://github.com/kernelci/kcidb-io.git\n\nTo install from a local directory:\n\n    pip3 install .\n\nUsing\n-----\n\nHere's an example creating an empty report and then validating it:\n```python\n# Import the kcidb-io package\nimport kcidb_io\n# Create an empty report using the latest schema version\njson = kcidb_io.new()\n# Validate the report\nkcidb_io.schema.validate(json)\n```\n\nExporting the JSON schema\n-------------------------\n\nThe current schema is available as a JSON Schema dictionary on the version\nclass. The latest schema is exposed as `kcidb_io.schema.LATEST`.\n\nExport the latest schema to a file:\n\n```bash\npython3 - \u003c\u003c'PY'\nimport json\nfrom kcidb_io import schema\n\nv = schema.LATEST\nwith open(f\"kcidb-io.schema.v{v.major}.{v.minor}.json\", \"w\") as f:\n    json.dump(v.json, f, indent=2, sort_keys=True)\nPY\n```\n\nCompatibility notes\n-------------------\n\nThe schema is validated in this library using JSON Schema Draft-07. The\nexported schema JSON does not include a `$schema` field; if a validator\nrequires one, add:\n\n```json\n{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\"\n}\n```\n\nThe schema uses `$defs` and the `uri` string format. If your validator supports\nformat checking, enable it to validate `uri` values.\n\nHacking\n-------\n\nIf you want to hack on the source code, install the package in the editable\nmode with the `-e/--editable` option, and with \"dev\" extra included. E.g.:\n\n    pip3 install --user --editable '.[dev]'\n\nThe latter installs the `kcidb-io` package using the modules from the source\ndirectory, and changes to them will be reflected immediately without the need\nto reinstall. It also installs extra development tools, such as `flake8` and\n`pylint`.\n\n[kcidb]: https://github.com/kernelci/kcidb/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelci%2Fkcidb-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkernelci%2Fkcidb-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelci%2Fkcidb-io/lists"}