Skip to main content

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

Metadata

Release files for spdx3merge 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spdx3merge 0.0.3
File Size Uploaded
spdx3merge-0.0.3.tar.gz 46.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spdx3merge 0.0.3
File Interpreter ABI Platform
spdx3merge-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 93.4 kB

Release files / spdx3merge-0.0.3.tar.gz

Download URL spdx3merge-0.0.3.tar.gz
Size 46.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3a5cd96bd75fc77d066e9c95018c22b44d8d4a49e72866412a0fe99bcb53a422
BLAKE2b-256 checksum
How to use checksums
1e08f491e9e72ddc0e235b7a36c16b475cdffe5e56622ece568bc4a17fa5e039
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2024.

Transparency log

Release files / spdx3merge-0.0.3-py3-none-any.whl

Download URL spdx3merge-0.0.3-py3-none-any.whl
Size 46.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f62049813c78ff06d59ae8be4c3c93ca83791f95223ac77c4bfbba8a20798c6
BLAKE2b-256 checksum
How to use checksums
2e3f01c44d281cd4e20c2a0005b5f06b87c1a440d1b7c730a0e7a596f1f66e6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page