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.1.tar.gz
(7.4 kB
view details)
Built Distribution
File details
Details for the file spdx3_validate-0.0.1.tar.gz
.
File metadata
- Download URL: spdx3_validate-0.0.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fd82231686b8a040d94ec4cd220ddf67f998c757f35984d93dfee9cbe7e8264 |
|
MD5 | e24c0766e6c037af422fbecf93f06391 |
|
BLAKE2b-256 | 3762517e9654a784a88c7ec96db3acf629b7d19328c62321b2b3f8abc5a64a2f |
File details
Details for the file spdx3_validate-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: spdx3_validate-0.0.1-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 | db59d93c3b0c68814018f9edc400dc16870c12eff7d4490558740e0fc1b6c827 |
|
MD5 | 4af88443d5ef4b6e35549537280474f7 |
|
BLAKE2b-256 | f53e662be2928e1c798727d79f9e172ee21c3e5f4122639672ee0ea797527356 |