Skip to main content

Simple SPDX Package validator

Project description

 

REUSE status

spdx-validator

Simple validator of package SBoM

Installation

git https://github.com/hesa/spdx-validator.git
cd spdx-validator
pip install .

Supported SPDX versions

Supported formats

  • yaml

  • JSON

Using spdx_validator

Basic use

Assuming you have an SPDX file, project.json, you would like to validate:

$ spdx-validator project.json
$ echo $?
0

If you don't see any printout and the return code is 0, the file is valid.

Verbose printut

Assuming you have an SPDX file, project.spdx.yaml, you would like to validate:

$ spdx-validator example-data/project.spdx.yml --verbose
Determine file suffix:  OK, .yml
Read data from file: OK
Validating spdx data : OK
$ echo $?
0

Recursive use

As above you have an SPDX file, project.json, you would like to validate. But this time you want to check all the relationships recursively.

$ spdx-validator project.json -r
$ echo $?
0

If you don't see any printout and the return code is 0, the file is valid.

License

The program is licensed under GPL-3.0-only

The data (in the var directory) may be under other licenses.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spdx-validator-0.1.7.tar.gz (29.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page