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 be used to validate 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 spdxId 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. (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

spdx3_validate-0.0.5.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spdx3_validate-0.0.5-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

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

Hashes for spdx3_validate-0.0.5.tar.gz
Algorithm Hash digest
SHA256 4981de9f84246465cb03b9e41a61097180a494963a3bc3465fc79d7f76782f55
MD5 a668f3a2f07f3abf275b47ce40c6c608
BLAKE2b-256 f8bd6f298fed6597b7e6f6083359741aae4133648f6d28b16da00e8c1bf24266

See more details on using hashes here.

Provenance

The following attestation bundles were made for spdx3_validate-0.0.5.tar.gz:

Publisher: publish.yaml on JPEWdev/spdx3-validate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for spdx3_validate-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 47d37ec4051eb61ef630aca984a4349ded1ddb403172b7e8652e0eb200522780
MD5 9c85480b29e52daa0312c8df1f76b9a7
BLAKE2b-256 13f0b80264a9edc5304456fd756555061727fb4f6eae2ee1af3cba7dfe61f79a

See more details on using hashes here.

Provenance

The following attestation bundles were made for spdx3_validate-0.0.5-py3-none-any.whl:

Publisher: publish.yaml on JPEWdev/spdx3-validate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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