Simple SPDX Package validator
Project description
spdx-validator
Simple validator of package SBoM
Installation
git https://github.com/hesa/spdx-validator.git
cd spdx-validator
pip install .
Supported SPDX versions
- 2.2 through this JSON schema
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
File details
Details for the file spdx-validator-0.1.7.tar.gz
.
File metadata
- Download URL: spdx-validator-0.1.7.tar.gz
- Upload date:
- Size: 29.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a3c91b687a7d9f02c43139e216ba847f2f3cb9d8b6a9726fa98ec0194c88319 |
|
MD5 | ab2fa1154854302204e2d643fcd889d4 |
|
BLAKE2b-256 | f8ab0770d954242617db36ae1b24705f7f3a138321b42c2b82e4bfdc8cbfef72 |