Skip to main content

Toolset that helps with creating and interacting with SBOMs, enriching with licensing and copyright information, and checking for Open Source license compliance

Project description

Compliance Assistant

Test suites REUSE status The latest version of Compliance Assistant can be found on PyPI. Information on what versions of Python Compliance Assistant supports can be found on PyPI.

Compliance Assistant is a comprehensive toolset designed to assist with creating and managing Software Bill of Materials (SBOMs). It helps in enriching SBOMs with licensing and copyright information and checks for Ppen Source license compliance using data from ClearlyDefined.

Features

  • SBOM Generation: Automatically generate a CycloneDX SBOM from a specified code repository.
  • SBOM Enrichment: Enhance an existing SBOM with detailed licensing and copyright information using ClearlyDefined data.
  • SBOM Parsing: Extract specific information from a CycloneDX SBOM.
  • License and Copyright Information Retrieval: Fetch licensing and copyright details for a single package from ClearlyDefined.

Requirements

  • Python 3.10+
  • Internet connection for accessing ClearlyDefined services

Installation

Install and run via pipx (Recommended)

pipx makes installing and running Python programs easier and avoid conflicts with other packages. Install it with

pip3 install pipx

The following one-liner both installs and runs this program from PyPI:

pipx run compliance-assistant

If you want to be able to use compliance-assistant without prepending it with pipx run every time, install it globally like so:

pipx install compliance-assistant

compliance-assistant will then be available in ~/.local/bin, which must be added to your $PATH.

After this, make sure that ~/.local/bin is in your $PATH. On Windows, the required path for your environment may look like %USERPROFILE%\AppData\Roaming\Python\Python310\Scripts, depending on the Python version you have installed.

To upgrade compliance-assistant to the newest available version, run this command:

pipx upgrade compliance-assistant

For full functionality, the following pieces of software are recommended:

Other installation methods

You may also use pure pip or poetry to install this package.

Usage

The Compliance Assistant provides multiple commands to facilitate different tasks. Each command is invoked through the compliance-assistant command-line interface with specific options.

Depending on your exact installation method, this may be one of

# Run via pipx
pipx run compliance-assistant
# Installation via pipx or pip
compliance-assistant
# Run via poetry
poetry run compliance-assistant

In the following, we will just use compliance-assistant

Command Structure

compliance-assistant [global-options] <command> [command-options]

Commands

Please run compliance-assistant --help to get an overview of the commands and global options.

For each command, you can get detailed options, e.g. compliance-assistant sbom-enrich --help.

Examples

  • Create an SBOM for the current directory: compliance-assistant sbom-generate -d .
  • Enrich an SBOM with ClearlyDefined data: compliance-assistant sbom-enrich -f /tmp/my-sbom.json -o /tmp/my-enriched-sbom.json
  • Extract certain data from an SBOM: compliance-assistant sbom-parse -f /tmp/my-enriched-sbom.json -e purl,copyright,name
  • Gather ClearlyDefined licensing/copyright information for one package: compliance-assistant clearlydefined -p pkg:pypi/inwx-dns-recordmaster@0.3.1

Development and Contribution

We welcome contributions to improve Compliance Assistant. Please read CONTRIBUTING.md for all information.

License

The content of this repository is licensed under the Apache 2.0 license.

There may be components under different, but compatible licenses or from different copyright holders. The project is REUSE compliant which makes these portions transparent. You will find all used licenses in the LICENSES directory.

The project is has been started by the OpenRail Association. You are welcome to contribute!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

compliance_assistant-0.1.1.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

compliance_assistant-0.1.1-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file compliance_assistant-0.1.1.tar.gz.

File metadata

  • Download URL: compliance_assistant-0.1.1.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1022-azure

File hashes

Hashes for compliance_assistant-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1a7e8469623d70aabd80014ff6d8c295de249526f16011f2a0ebfcaf2e8f1f29
MD5 582495e73b03f1960a3515ee4a0fc67e
BLAKE2b-256 77a8756c99330c5e2878435f84522f6669edeaf8b4295b301f96db0f84c13e49

See more details on using hashes here.

File details

Details for the file compliance_assistant-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for compliance_assistant-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2a4376a7f22ea30d45032a569f3a5281dc7300ec2b526f59482c068786a2570
MD5 1916857ec2eb8d77e007a2568b971410
BLAKE2b-256 94c78dc314122a99c68cd12c82e21c04c26d6ccdcb760fd3eb4027dc6bf7e92f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page