Skip to main content

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:

  1. Ignored SHACL errors for missing SpdxIds if they are defined in an ExternalMap
  2. Validation that any SpdxIds defined in an ExternalMap are not present in the document
  3. SHACL Validation of merged documents (in this way, if you reference an SpdxId from an ExternalMap and then pass the document that provides that SpdxId, the type can be validated
  4. (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


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.4.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

spdx3_validate-0.0.4-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file spdx3_validate-0.0.4.tar.gz.

File metadata

  • Download URL: spdx3_validate-0.0.4.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for spdx3_validate-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4b11e95b9261a07d55867690b378465aeefd66b6fe9eff69d81749797a42363d
MD5 82741fd5352175871cf51c734579de12
BLAKE2b-256 611282dfb007da06766765ee35954fdc77f06cdb6cbab74ab357bcf675f11369

See more details on using hashes here.

File details

Details for the file spdx3_validate-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for spdx3_validate-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 21dcb4e806e4fe209ecce512a35b6972cac584685946394d265cb4edafff894f
MD5 e67779e42308d13f6801e344b6b3eca3
BLAKE2b-256 333f23cee0a0ef8d0664f96500a207b09506a8e20db28baa702df3bb5f40cd83

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page