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.
Metadata
Release files for spdx-validator 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spdx-validator-0.1.7.tar.gz | 29.0 kB | Without provenance | Details for spdx-validator-0.1.7.tar.gz |
Release files / spdx-validator-0.1.7.tar.gz
| Download URL | spdx-validator-0.1.7.tar.gz |
|---|---|
| Size | 29.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a3c91b687a7d9f02c43139e216ba847f2f3cb9d8b6a9726fa98ec0194c88319
|
|
BLAKE2b-256 checksum How to use checksums |
f8ab0770d954242617db36ae1b24705f7f3a138321b42c2b82e4bfdc8cbfef72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.2
|
Security for spdx-validator 0.1.7
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.