Check SPDX SBOM for NTIA minimum elements
Project description
NTIA Conformance Checker
This tool determines whether a SPDX software bill of materials (SBOM) document contains the National Telecommunications and Information Administration (NTIA) "minimum elements." The mapping of the NTIA elements required data fields to the SPDX specification can be found here.
The minimum elements include:
- Supplier Name
- Component Name
- Version of the Component
- Other Unique Identifiers
- Dependency Relationship
- Author of SBOM Data
- Timestamp
As defined by the NTIA, the minimum elements are "the essential pieces that support basic SBOM functionality and will serve as the foundation for an evolving approach to software transparency."
Installation
Installation Method #1: Install from the Python Package Index (PyPI) with pip
.
pip install ntia-conformance-checker
Installation Method #2: Install locally. Clone the repo and install dependencies using the following commands:
git clone https://github.com/spdx/ntia-conformance-checker.git
cd ntia-conformance-checker
pip install .
The tool requires Python 3 (3.8+). It is recommended to use a virtual python environment especially
if you are using different versions of python. virtualenv
is a tool for setting up virtual python environments which
allows you to have all the dependencies for the tool set up in a single environment, or have different environments set
up for testing using different versions of Python.
CLI Usage
Usage: ntia-checker [OPTIONS]
Options:
--file TEXT The file to be parsed
--output [print|json] Output format [default: print]
-v, --verbose Use verbose printing
--output_path TEXT Filepath for optionally storing output.
-h, --help Show this message and exit.
The user can then analyze a particular file:
ntia-checker --file sbom.json
To generare the output in machine-readable JSON, run:
ntia-checker --file sbom.spdx --output json
Usage as a Library
ntia-conformance-checker
can also be imported as a library. For example:
import ntia_conformance_checker as ntia
sbom = ntia.SbomChecker("SBOM_filepath")
print(sbom.ntia_minimum_elements_compliant)
Additional properties and methods associated with SbomChecker()
can be found in sbom_checker.py
.
History
This is the result of an initial Google Summer of Code (GSoC) contribution in 2022 by @linynjosh and is maintained by a community of SPDX adopters and enthusiasts.
License
Dependencies
- spdx-tools used for parsing the SPDX SBOM.
Support
- Submit issues, questions or feedback at https://github.com/spdx/ntia-conformance-checker/issues
- Join the discussion on https://lists.spdx.org/g/spdx-tech and https://spdx.dev/participate/tech/
Contributing
Contributions are very welcome! See CONTRIBUTING.md for instructions on how to contribute to the codebase.
Further help
Check out the frequently asked questions document.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file ntia_conformance_checker-3.0.2.tar.gz
.
File metadata
- Download URL: ntia_conformance_checker-3.0.2.tar.gz
- Upload date:
- Size: 4.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 626d5979aebe50ba8c5dafd18ff566238df6e1a77b5e25d93e51137febb62269 |
|
MD5 | 90d78b91752bf46b097c43f8a1278a5a |
|
BLAKE2b-256 | 7526ab20d992898da81a81a90d7fd719fbabf731cf6e53671ee367b40d0d3d8f |
File details
Details for the file ntia_conformance_checker-3.0.2-py3-none-any.whl
.
File metadata
- Download URL: ntia_conformance_checker-3.0.2-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8baf96ac500bbd9e8f1af1ee6a69cd31a96dc783bddb3234cf00f316527f9696 |
|
MD5 | 3feb8b66ea3d66e64c9bc9be8d8013eb |
|
BLAKE2b-256 | 716af6473bcdb86036d8f265afc4e12cf32c540893f33c8a195cf3bc12a9c766 |