Validates SPDX 3 data files
Project description
SPDX 3 Validation Tool
Validates SPDX 3 documents
While standalone tools like pyshacl
and check-jsonschema
can use used to
validation 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
SpdxIds
defined in anExternalMap
are not present in the document - SHACL Validation of merged documents (in this way, if you reference an
SpdxId
from anExternalMap
and then pass the document that provides thatSpdxId
, the type can be validated - (Hopefull) 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
spdx3_validate-0.0.2.tar.gz
(7.3 kB
view details)
Built Distribution
File details
Details for the file spdx3_validate-0.0.2.tar.gz
.
File metadata
- Download URL: spdx3_validate-0.0.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b18c10a6a5b8a14a4b49ab612aefa1fff0501d207c84539711fb12cdc977870c |
|
MD5 | 7f77b21a42c98c5795370ebf8eee6524 |
|
BLAKE2b-256 | 75cccf2d8d1b6230fb35e21406495ce3dba3700022fb89d84855e8786495fdb3 |
File details
Details for the file spdx3_validate-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: spdx3_validate-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 388efe6b4867de631e94713a1e45eb3ee934a0598e41c5ab60953d825ad7e92f |
|
MD5 | 77327db8ef63df026b9c3b6b49117dc0 |
|
BLAKE2b-256 | 3d971c38d27e166b02d1adf8577705a2d119fcf6a7e07089423dace9dd32372c |