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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a5cd96bd75fc77d066e9c95018c22b44d8d4a49e72866412a0fe99bcb53a422
|
|
| MD5 |
7f676d4493ebf62d7800b9a74bb9c6b5
|
|
| BLAKE2b-256 |
1e08f491e9e72ddc0e235b7a36c16b475cdffe5e56622ece568bc4a17fa5e039
|
Provenance
The following attestation bundles were made for spdx3merge-0.0.3.tar.gz:
Publisher:
publish.yaml on JPEWdev/spdx3merge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spdx3merge-0.0.3.tar.gz -
Subject digest:
3a5cd96bd75fc77d066e9c95018c22b44d8d4a49e72866412a0fe99bcb53a422 - Sigstore transparency entry: 151389028
- Sigstore integration time:
-
Permalink:
JPEWdev/spdx3merge@930e208116d3860f86dd97516cae7ca2e09ad047 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/JPEWdev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@930e208116d3860f86dd97516cae7ca2e09ad047 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f62049813c78ff06d59ae8be4c3c93ca83791f95223ac77c4bfbba8a20798c6
|
|
| MD5 |
f5e017c33c4d5d7e57d28bea6680ed1b
|
|
| BLAKE2b-256 |
2e3f01c44d281cd4e20c2a0005b5f06b87c1a440d1b7c730a0e7a596f1f66e6e
|
Provenance
The following attestation bundles were made for spdx3merge-0.0.3-py3-none-any.whl:
Publisher:
publish.yaml on JPEWdev/spdx3merge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spdx3merge-0.0.3-py3-none-any.whl -
Subject digest:
7f62049813c78ff06d59ae8be4c3c93ca83791f95223ac77c4bfbba8a20798c6 - Sigstore transparency entry: 151389029
- Sigstore integration time:
-
Permalink:
JPEWdev/spdx3merge@930e208116d3860f86dd97516cae7ca2e09ad047 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/JPEWdev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@930e208116d3860f86dd97516cae7ca2e09ad047 -
Trigger Event:
release
-
Statement type: