ntia-conformance-checker


Namentia-conformance-checker JSON
Version 3.0.1 PyPI version JSON
download
home_pageNone
SummaryCheck SPDX SBOM for NTIA minimum elements
upload_time2024-09-21 12:15:19
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseApache-2.0
keywords spdx sbom ntia
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Build Status](https://github.com/spdx/ntia-conformance-checker/workflows/build/badge.svg)](https://github.com/spdx/ntia-conformance-checker/actions)
![CodeQL](https://github.com/spdx/ntia-conformance-checker/actions/workflows/codeql.yml/badge.svg)
[![PyPI version](https://badge.fury.io/py/ntia-conformance-checker.svg)](https://badge.fury.io/py/ntia-conformance-checker)
[![Pylint Version](https://img.shields.io/badge/linting-pylint-yellow)](https://badge.fury.io/py/ntia-conformance-checker)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/spdx/ntia-conformance-checker/badge)](https://scorecard.dev/viewer/?uri=github.com/spdx/ntia-conformance-checker)

# NTIA Conformance Checker

This tool determines whether a [SPDX](https://spdx.dev/) software bill of materials (SBOM) document contains the National Telecommunications and Information Administration (NTIA) ["minimum elements."](https://www.ntia.doc.gov/files/ntia/publications/sbom_minimum_elements_report.pdf) The mapping of the NTIA elements required data fields to the SPDX specification can be found [here](https://spdx.github.io/spdx-spec/v2.3/how-to-use/#k22-mapping-ntia-minimum-elements-to-spdx-fields).

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)](https://pypi.org/project/ntia-conformance-checker/) with `pip`.

`pip install ntia-conformance-checker`

*Installation Method #2*: Install locally. Clone the repo and install dependencies using the following commands:

```bash
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:

```bash
ntia-checker --file sbom.json
```

To generare the output in machine-readable JSON, run:

```bash
ntia-checker --file sbom.spdx --output json
```

## Usage as a Library

`ntia-conformance-checker` can also be imported as a library. For example:

```python

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`](ntia_conformance_checker/sbom_checker.py).

# History

This is the result of an initial [Google Summer of Code (GSoC)](https://summerofcode.withgoogle.com/) contribution in 2022 by
[@linynjosh](https://github.com/linynjosh) and is maintained
by a community of SPDX adopters and enthusiasts.

# License

[Apache-2.0](LICENSE)

# Dependencies

* [spdx-tools](https://pypi.org/project/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](./CONTRIBUTING.md) for instructions on how to contribute to the codebase.

# Further help

Check out the [frequently asked questions](FAQ.md) document.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ntia-conformance-checker",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "John Speed Meyers <johnmeyersster@gmail.com>, Gary O'Neall <gary@sourceauditor.com>, Josh Lin <linynjosh@gmail.com>, SPDX group at the Linux Foundation and others <spdx-implementers+owner@lists.spdx.org>",
    "keywords": "spdx, sbom, ntia",
    "author": null,
    "author_email": "Josh Lin <linynjosh@gmail.com>, John Speed Meyers <johnmeyersster@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/37/64/a8573c1a69cb6528212a39c92c9ef21434381f196355e8919b3331d5becb/ntia_conformance_checker-3.0.1.tar.gz",
    "platform": null,
    "description": "[![Build Status](https://github.com/spdx/ntia-conformance-checker/workflows/build/badge.svg)](https://github.com/spdx/ntia-conformance-checker/actions)\n![CodeQL](https://github.com/spdx/ntia-conformance-checker/actions/workflows/codeql.yml/badge.svg)\n[![PyPI version](https://badge.fury.io/py/ntia-conformance-checker.svg)](https://badge.fury.io/py/ntia-conformance-checker)\n[![Pylint Version](https://img.shields.io/badge/linting-pylint-yellow)](https://badge.fury.io/py/ntia-conformance-checker)\n[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/spdx/ntia-conformance-checker/badge)](https://scorecard.dev/viewer/?uri=github.com/spdx/ntia-conformance-checker)\n\n# NTIA Conformance Checker\n\nThis tool determines whether a [SPDX](https://spdx.dev/) software bill of materials (SBOM) document contains the National Telecommunications and Information Administration (NTIA) [\"minimum elements.\"](https://www.ntia.doc.gov/files/ntia/publications/sbom_minimum_elements_report.pdf) The mapping of the NTIA elements required data fields to the SPDX specification can be found [here](https://spdx.github.io/spdx-spec/v2.3/how-to-use/#k22-mapping-ntia-minimum-elements-to-spdx-fields).\n\nThe minimum elements include:\n- Supplier Name\n- Component Name\n- Version of the Component\n- Other Unique Identifiers\n- Dependency Relationship\n- Author of SBOM Data\n- Timestamp\n\nAs 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.\"\n\n## Installation\n\n*Installation Method #1*: Install from the [Python Package Index (PyPI)](https://pypi.org/project/ntia-conformance-checker/) with `pip`.\n\n`pip install ntia-conformance-checker`\n\n*Installation Method #2*: Install locally. Clone the repo and install dependencies using the following commands:\n\n```bash\ngit clone https://github.com/spdx/ntia-conformance-checker.git\ncd ntia-conformance-checker\npip install .\n```\n\nThe tool requires Python 3 (3.8+). It is recommended to use a virtual python environment especially\nif you are using different versions of python. `virtualenv` is a tool for setting up virtual python environments which\nallows you to have all the dependencies for the tool set up in a single environment, or have different environments set\nup for testing using different versions of Python.\n\n## CLI Usage\n\n```\nUsage: ntia-checker [OPTIONS]\n\nOptions:\n  --file TEXT            The file to be parsed\n  --output [print|json]  Output format  [default: print]\n  -v, --verbose          Use verbose printing\n  --output_path TEXT     Filepath for optionally storing output.\n  -h, --help             Show this message and exit.\n```\n\nThe user can then analyze a particular file:\n\n```bash\nntia-checker --file sbom.json\n```\n\nTo generare the output in machine-readable JSON, run:\n\n```bash\nntia-checker --file sbom.spdx --output json\n```\n\n## Usage as a Library\n\n`ntia-conformance-checker` can also be imported as a library. For example:\n\n```python\n\nimport ntia_conformance_checker as ntia\n\nsbom = ntia.SbomChecker(\"SBOM_filepath\")\n\nprint(sbom.ntia_minimum_elements_compliant)\n```\n\nAdditional properties and methods associated with `SbomChecker()` can be found in [`sbom_checker.py`](ntia_conformance_checker/sbom_checker.py).\n\n# History\n\nThis is the result of an initial [Google Summer of Code (GSoC)](https://summerofcode.withgoogle.com/) contribution in 2022 by\n[@linynjosh](https://github.com/linynjosh) and is maintained\nby a community of SPDX adopters and enthusiasts.\n\n# License\n\n[Apache-2.0](LICENSE)\n\n# Dependencies\n\n* [spdx-tools](https://pypi.org/project/spdx-tools/) used for parsing the SPDX SBOM.\n\n# Support\n\n* Submit issues, questions or feedback at https://github.com/spdx/ntia-conformance-checker/issues\n* Join the discussion on https://lists.spdx.org/g/spdx-tech and https://spdx.dev/participate/tech/\n\n# Contributing\n\nContributions are very welcome! See [CONTRIBUTING.md](./CONTRIBUTING.md) for instructions on how to contribute to the codebase.\n\n# Further help\n\nCheck out the [frequently asked questions](FAQ.md) document.\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Check SPDX SBOM for NTIA minimum elements",
    "version": "3.0.1",
    "project_urls": {
        "Homepage": "https://github.com/spdx/ntia-conformance-checker"
    },
    "split_keywords": [
        "spdx",
        " sbom",
        " ntia"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b806ed8922cc3df4b7a714bcb986f0cebca9107fe5a1a0aa9ee63ee839c98081",
                "md5": "8de20f009b326de0825210f97bdbd1d6",
                "sha256": "d1ccc47cfb79bcee6f8e1292cfd03402d98c646419a0a6872141f4e03ed6b587"
            },
            "downloads": -1,
            "filename": "ntia_conformance_checker-3.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8de20f009b326de0825210f97bdbd1d6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 11726,
            "upload_time": "2024-09-21T12:15:18",
            "upload_time_iso_8601": "2024-09-21T12:15:18.099545Z",
            "url": "https://files.pythonhosted.org/packages/b8/06/ed8922cc3df4b7a714bcb986f0cebca9107fe5a1a0aa9ee63ee839c98081/ntia_conformance_checker-3.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3764a8573c1a69cb6528212a39c92c9ef21434381f196355e8919b3331d5becb",
                "md5": "7456ba6c3899db8d7f74901dd4749464",
                "sha256": "b4dd91815bc7c809587c48e31531f0a276eccab13533504e50ca70e57ec3af38"
            },
            "downloads": -1,
            "filename": "ntia_conformance_checker-3.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "7456ba6c3899db8d7f74901dd4749464",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3965084,
            "upload_time": "2024-09-21T12:15:19",
            "upload_time_iso_8601": "2024-09-21T12:15:19.208437Z",
            "url": "https://files.pythonhosted.org/packages/37/64/a8573c1a69cb6528212a39c92c9ef21434381f196355e8919b3331d5becb/ntia_conformance_checker-3.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-21 12:15:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "spdx",
    "github_project": "ntia-conformance-checker",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ntia-conformance-checker"
}
        
Elapsed time: 4.45524s