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"
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
Hashes for spdx3merge-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8decaa5f8d3e3b7db45fd53c5561df5dbbf544dda42a20cd2dab800d7866aefa |
|
MD5 | 72b6baf446ac962bf064dc44cb69fb4e |
|
BLAKE2b-256 | 77cbf88161cb9be25806898e7b96a14f573ba1e63eb4e1335506a5a8584ffe98 |