Skip to main content

Simple command line tool to check compatibility between two licenses, given context

Project description

Licomp Toolkit

Licomp toolkit is a license compatiblity tool using miscellaneous available compatibility resources and provides replies from all resources.

Introduction

Licomp can be used to help determine if a license is compatible with an outbound license. These compatibility checks needs context which is often missing. The context above must be provided to licomp-toolkit. In short the context is:

  • use case - how you use the licensed component
  • provisioning - how you provide the component to your user
  • modification - if you have modified the component

Licomp toolkit is using the Licomp api to communicate with the Licomp resources. For a better understanding of Licomp we suggest you read:

Licomp resources

Licomp toolkit uses the following compatibility resources using the Licomp api: licomp-hermione, licomp-osadl, licomp-proprietary, licomp-reclicense, licomp-dwheeler and licomp-gnuguide.

Using Licomp Toolkit

Command line interface (brief intro)

If you want to check if the following is compatible:

  • outbound license "MIT"
  • inbound license "LGPL-2.0-or-later"
$ licomp-toolkit verify -il MIT -ol LGPL-2.0-or-later | jq .summary.results
{
  "nr_valid": "1",
  "yes": {
    "count": 1,
    "percent": 100.0
  }
}

In the above example, licomp-toolkit by default chose:

  • usecase library- i.e. the licenses component is used as a library (e.g. linking to it)
  • provisioning binary-distribution
  • modification is not yet implemented

For more detailed guides to licomp-toolkit, please check out:

Python module

If you want to check if the following is compatible:

  • outbound license "MIT"
  • inbound license "LGPL-2.0-or-later"
>>> from licomp_toolkit.toolkit import LicompToolkit
>>> licomp_toolkit = LicompToolkit()
>>> compatibilities = licomp_toolkit.outbound_inbound_compatibility("MIT", "LGPL-2.0-or-later", "library", "binary-distribution")
>>> print(str(compatibilities['summary']['results']))
{'nr_valid': '1', 'yes': {'count': 1, 'percent': 100.0}}

For a more detailed guide to the licomp-toolkit Python api, please check out: Licomp Toolkit - Python module

Installing Licomp Toolkit

From pypi.org

Licomp Toolkit is available via pypi.org at: https://pypi.org/project/licomp-toolkit/. To install, simply do the following:

$ pip install licomp-toolkit

From github

Installing from github assumes you already have pip installed.

$ git clone https://github.com/hesa/licomp-toolkit
$ pip install -r requirements.txt
$ pip install -r requirements-dev.txt
$ pip install .

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

licomp_toolkit-0.5.5.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

licomp_toolkit-0.5.5-py2.py3-none-any.whl (29.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file licomp_toolkit-0.5.5.tar.gz.

File metadata

  • Download URL: licomp_toolkit-0.5.5.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for licomp_toolkit-0.5.5.tar.gz
Algorithm Hash digest
SHA256 3aea8b8411d88ea87295a4a76a75a073ae53ab848a6ed802f57097d3a89cb98f
MD5 03f2a1a92785f5dfc8d5abe86a65bf37
BLAKE2b-256 a4ee7de55e8652f8fdb8e73c849230e7432d039ab9d0806d26e88f2978730856

See more details on using hashes here.

File details

Details for the file licomp_toolkit-0.5.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for licomp_toolkit-0.5.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 19b3515b68d16e38d1e30858aaa64356752b8c327dc0b73e94a8566a56f752ab
MD5 e959f53c55699ecc851a8db1f59f049b
BLAKE2b-256 a1f8a85df854d79003e5f9fd9eeb9c54bd829b4ce912f181da9a72bb664d4dc3

See more details on using hashes here.

Supported by

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