Skip to content

An early WIP library for handling Opossum files with Python

License

Notifications You must be signed in to change notification settings

MaxHun/opossum.lib.py

This branch is 613 commits behind opossum-tool/opossum-file:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f08d486 · Apr 26, 2023

History

56 Commits
Apr 14, 2023
Apr 13, 2023
Apr 13, 2023
Apr 17, 2023
Apr 26, 2023
Apr 26, 2023
Apr 13, 2023
Mar 14, 2023
Mar 6, 2023
Apr 20, 2023
Apr 26, 2023
Apr 26, 2023

Repository files navigation

opossum.lib.py

REUSE status Lint and test

This is a library to convert an SPDX document to a file readable by OpossumUI.

Current state

This is a work in progress and not yet stable.

License

Apache-2.0

Installation

This package uses poetry for installation and dependency management. To install the local clone of this repo run

poetry install  # in the root of the repo

How to use

Command-line usage

Usage: spdx2opossum [OPTIONS]

  CLI-tool for converting SPDX documents to Opossum documents.

Options:
  -i, --infile PATH   The file containing the document to be converted.
                      [required]
  -o, --outfile TEXT  The file path to write the generated opossum document
                      to. The generated file will be in JSON format, if the
                      specified file path doesn't match this file extension
                      ".json" will be appended.
  --help              Show this message and exit.

Development

To test your changes run

poetry run pytest  # in the root of the repo

The package provides a script (./scripts/linter_and_formatting.sh) to make your changes compliant with the expected code style. To use this script under linux run

./scripts/linter_and_formatting.sh  # in the root of the repo

About

An early WIP library for handling Opossum files with Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.0%
  • Shell 1.0%