Validates SPDX 3 data files
Project description
SPDX 3 Validation Tool
Validates SPDX 3 documents
While standalone tools like pyshacl and check-jsonschema can be used to
validate SPDX 3 documents, there are a few context-aware checks that can be
useful. This includes:
- Ignored SHACL errors for missing
spdxIds if they are defined in anExternalMap - Validation that any
spdxIddefined in anExternalMapare not present in the document - SHACL Validation of merged documents (in this way, if you reference an
spdxIdfrom anExternalMapand then pass the document that provides thatspdxId, the type can be validated) - (Hopefully) More useful JSON schema error output
Installation
spdx3-validate can be installed using pip:
python3 -m pip install spdx3-validate
Developing
Developing on spdx3-validate is best done using a virtual environment. You
can configure one and install spdx3-validate in editable mode with all
necessary development dependencies by running:
python3 -m venv .venv
. .venv/bin/activate
pip install -e ".[dev]"
TODO
- Option to automatically download dependencies based on
locationHint - Offline validation?
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spdx3_validate-0.0.5.tar.gz.
File metadata
- Download URL: spdx3_validate-0.0.5.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4981de9f84246465cb03b9e41a61097180a494963a3bc3465fc79d7f76782f55
|
|
| MD5 |
a668f3a2f07f3abf275b47ce40c6c608
|
|
| BLAKE2b-256 |
f8bd6f298fed6597b7e6f6083359741aae4133648f6d28b16da00e8c1bf24266
|
Provenance
The following attestation bundles were made for spdx3_validate-0.0.5.tar.gz:
Publisher:
publish.yaml on JPEWdev/spdx3-validate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spdx3_validate-0.0.5.tar.gz -
Subject digest:
4981de9f84246465cb03b9e41a61097180a494963a3bc3465fc79d7f76782f55 - Sigstore transparency entry: 151385714
- Sigstore integration time:
-
Permalink:
JPEWdev/spdx3-validate@21d12a2a5a43b6bdf5eaff5ba8d8eeb68dc54315 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/JPEWdev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@21d12a2a5a43b6bdf5eaff5ba8d8eeb68dc54315 -
Trigger Event:
release
-
Statement type:
File details
Details for the file spdx3_validate-0.0.5-py3-none-any.whl.
File metadata
- Download URL: spdx3_validate-0.0.5-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47d37ec4051eb61ef630aca984a4349ded1ddb403172b7e8652e0eb200522780
|
|
| MD5 |
9c85480b29e52daa0312c8df1f76b9a7
|
|
| BLAKE2b-256 |
13f0b80264a9edc5304456fd756555061727fb4f6eae2ee1af3cba7dfe61f79a
|
Provenance
The following attestation bundles were made for spdx3_validate-0.0.5-py3-none-any.whl:
Publisher:
publish.yaml on JPEWdev/spdx3-validate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spdx3_validate-0.0.5-py3-none-any.whl -
Subject digest:
47d37ec4051eb61ef630aca984a4349ded1ddb403172b7e8652e0eb200522780 - Sigstore transparency entry: 151385715
- Sigstore integration time:
-
Permalink:
JPEWdev/spdx3-validate@21d12a2a5a43b6bdf5eaff5ba8d8eeb68dc54315 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/JPEWdev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@21d12a2a5a43b6bdf5eaff5ba8d8eeb68dc54315 -
Trigger Event:
release
-
Statement type: