Skip to main content

Merge SPDX 3 data files

Project description

Merge SPDX 3 Document

A tool to merge SPDX 3 Documents

Installation

spdx3merge can be installed using pip:

python3 -m pip install spdx3merge

Usage

In a basic form, spdx3merge will merge multiple input documents into a single output document. To specify the input documents, use the --input or -i arguments. The output document is specified with --output or -o.

The first input document specified is considered the "root" document; that is all of its root elements will be copied to the output document root elements.

In order to generate proper output document, at least one --author- argument must be specified. The easiest is to use --author-person and specify your name. For other author options, see spdx3merge --help.

Here is a complete example:

spdx3merge \
    --input A.spdx.json \
    --input B.spdx.json \
    --input C.spdx.json \
    --output out.spdx.json \
    --author-person "Joshua Watt"

If you are going to read the document, you'll most likely also want the --pretty option to make it more readable

Development

Development on spdx3merge can be done by setting up a virtual environment and installing it in editable mode:

python3 -m venv .venv
. .venv/bin/activate
pip install -e '.[dev]'

Tests can be run using pytest:

pytest -v

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

spdx3merge-0.0.3.tar.gz (46.9 kB view details)

Uploaded Source

Built Distribution

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

spdx3merge-0.0.3-py3-none-any.whl (46.5 kB view details)

Uploaded Python 3

File details

Details for the file spdx3merge-0.0.3.tar.gz.

File metadata

  • Download URL: spdx3merge-0.0.3.tar.gz
  • Upload date:
  • Size: 46.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for spdx3merge-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3a5cd96bd75fc77d066e9c95018c22b44d8d4a49e72866412a0fe99bcb53a422
MD5 7f676d4493ebf62d7800b9a74bb9c6b5
BLAKE2b-256 1e08f491e9e72ddc0e235b7a36c16b475cdffe5e56622ece568bc4a17fa5e039

See more details on using hashes here.

Provenance

The following attestation bundles were made for spdx3merge-0.0.3.tar.gz:

Publisher: publish.yaml on JPEWdev/spdx3merge

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

File details

Details for the file spdx3merge-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: spdx3merge-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 46.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for spdx3merge-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7f62049813c78ff06d59ae8be4c3c93ca83791f95223ac77c4bfbba8a20798c6
MD5 f5e017c33c4d5d7e57d28bea6680ed1b
BLAKE2b-256 2e3f01c44d281cd4e20c2a0005b5f06b87c1a440d1b7c730a0e7a596f1f66e6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for spdx3merge-0.0.3-py3-none-any.whl:

Publisher: publish.yaml on JPEWdev/spdx3merge

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