_____ _____ _______
/ ____|_ _|__ __|
| (___ | | | |
\___ \ | | | |
____) |_| |_ | |
|_____/|_____| |_|
Usage:
python -m SIT [-v] [--server] <subcommand> ...
Generate Software Bill of Materials (SBOM) for a software package.
Options:
-v, --version show program's version number and exit
--server Start SIT server mode
subcommands:
<subcommand>
generate Generate SBOM for a software package
merge Merge SBOMs
export Export Sub-SBOM
convert Convert SBOM between different formats
Installation
We provide two ways for users to use SIT: deploying locally by installing all necessary libraries, or using Docker.
Deploy locally
We use poetry to manage dependencies. Make sure you have poetry installed.
pip install poetry
Clone the repository and install the dependencies.
git clone
cd SIT
poetry install # install dependencies
poetry shell # activate the virtual environment
python3 -m SIT --help # check if SIT is installed successfully
Usage:
python -m SIT merge [options]
Options:
-i <INPUT> <INPUT>, --input <INPUT> <INPUT>
Input path of SBOMs to be merged, 2 SBOMs are required. The first one is the root SBOM and the second one is sub-
SBOM, currently only support json format
-o <OUTPUT>, --output <OUTPUT>
Output file path of SBOM, default is stdout
--model <MODEL> SBOM Model, choose from SPDX, CycloneDX, OSSBOM or middleware, default is middleware
Usage:
python -m SIT export [options]
Options:
-i <INPUT>, --input <INPUT>
Path of SBOM file to be exported
-o <OUTPUT>, --output <OUTPUT>
Output file path of SBOM, default is stdout
--id <ID> [<ID> ...] ID of the top-level Component to be exported
--model <MODEL> SBOM Model, choose from SPDX, CycloneDX, OSSBOM or middleware, default is middleware
Usage:
python -m SIT convert [options]
Options:
-i <INPUT>, --input <INPUT>
Input path of SBOM file to be converted
-o <OUTPUT>, --output <OUTPUT>
Output file path of SBOM, default is stdout
--model <MODEL> SBOM Model, choose from SPDX, CycloneDX, OSSBOM or middleware, default is middleware
Examples
If you deploy SIT locally:
python -m SIT convert -i /input/sbom.json -o /output/sbom.json --model spdx
SIT
Installation
We provide two ways for users to use SIT: deploying locally by installing all necessary libraries, or using Docker.
Deploy locally
We use poetry to manage dependencies. Make sure you have poetry installed.
Clone the repository and install the dependencies.
Deploy with Docker
Check the Docker installation guide to install Docker on your machine.
Pull the docker image of SIT.
Run the container.
The
--rmargument automatically removes the container after it stops.Commands
Server Mode
To run SIT as a server, invoke SIT with
--serverargument. By default, it listens to port9020.Generate Command
Generate an SBOM for the given Python package.
Examples
If you deploy SIT locally:
If you use SIT docker:
Merge Command
Merge two SBOMs.
Examples
If you deploy SIT locally:
If you use SIT docker:
Export Command
Export a sub-SBOM from a given SBOM.
Examples
If you deploy SIT locally:
If you use SIT docker:
Convert Command
Convert an SBOM between different SBOM formats.
Examples
If you deploy SIT locally:
If you use SIT docker: