Skip to main content

sbombox-core

Parse, validate, score, fix and check the compliance of software bills of materials (SBOMs) in CycloneDX and SPDX. This is the library behind the SBOMBox CLI and the SBOMBox platform.

  • Offline. Nothing is fetched over the network, including schemas.
  • No framework dependencies. Embed it in any Python 3.12+ application.
  • Formats. CycloneDX (JSON, XML, YAML) and SPDX (JSON, tag-value), detected automatically.

Install

pip install sbombox-core

Usage

from sbombox_core import load, validate_sbom, score, check_compliance, fix

sbom = load("bom.json")                  # path, bytes or text; format auto-detected

result = score(sbom)
print(result.total, result.grade)        # e.g. 8.12 B

report = validate_sbom(sbom)             # semantic findings; never raises
print(report.valid, len(report.issues))

ntia = check_compliance(sbom, "ntia-2021")
print(ntia.status)

fixed = fix(sbom)                        # repair common defects

Compliance rulesets: ntia-2021, cisa-2025, cisa-2026, cra-readiness, bsi-tr-03183-2@2.1.0 (and earlier versions), fsct-v3 and openchain-telco.

Lower-level entry points: parse_sbom for the parser, validate_document for schema and semantic validation of a raw document, diff to compare two SBOMs, and sbombox_core.model for the data model.

Licensed under Apache-2.0.

Metadata

Release files for sbombox-core 0.1.2

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

Source distribution (sdist)

Source distribution for sbombox-core 0.1.2
File Size Uploaded Provenance Actions
sbombox_core-0.1.2.tar.gz 128.2 kB With provenance Details for sbombox_core-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sbombox-core 0.1.2
File Interpreter ABI Platform Actions
sbombox_core-0.1.2-py3-none-any.whl Python 3 none any Details for sbombox_core-0.1.2-py3-none-any.whl

Total release size: 243.9 kB

Release files / sbombox_core-0.1.2.tar.gz

Download URL sbombox_core-0.1.2.tar.gz
Size 128.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5ae709a935c6eb75281e194686f7730d0be64ac37b22ee94aa31efca0196da88
BLAKE2b-256 checksum
How to use checksums
00f503476a712a0d9c1dd5d735c9f0d478b625d6b982b4e9c560052de8c5a1fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 27, 2026.

Transparency log

Release files / sbombox_core-0.1.2-py3-none-any.whl

Download URL sbombox_core-0.1.2-py3-none-any.whl
Size 115.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84c0d789a1fd2d18dc88581f80a3c32c0cbcf327ef83dd37407f635f1f9c2204
BLAKE2b-256 checksum
How to use checksums
d5292669d36174c8942ffc0a7dd51291d260516a25ad54e391e69401e827dcef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 27, 2026.

Transparency log

Security for sbombox-core 0.1.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sbombox_core-0.1.2.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 27, 2026.

Transparency log

A 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.

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