Skip to main content

OSADL license compatibility matrix

Project description

osadl-matrix

This is a machine readable version of the OSADL license compatibility matrix as a python library.

Changelog of the provided data

A detailed changelog of the provided data can be found here

License

This module is licensed under Unlicensed license. Feel free to do whatever you want with it.

Data license

The raw data of the OSADL Open Source License Checklists are licensed under the Creative Commons Attribution 4.0 International license (CC-BY-4.0), https://creativecommons.org/licenses/by/4.0/.

© 2017 - 2021 Open Source Automation Development Lab (OSADL) eG and contributors, info@osadl.org

Further information can be found here A copy of the CC-BY-4.0 text can be found here

Disclaimer

We are not affiliated, associated, endorsed by, or in any way officially connected with the Open Source Automation Development Lab (OSADL) eG, or any of its subsidiaries or its affiliates. The official OSADL website can be found at https://www.osadl.org.

Usage

Using builtin functions

import osadl_matrix

result = osadl_matrix.is_compatible("BSD-3-Clause", "MIT")
# result is either
# True - licenses are compatible
# False - licenses are *NOT* compatible

result = osadl_matrix.get_compatibility("GPL-2.0-only", "MIT")
# result is either
# osadl_matrix.OSADLCompatibility.YES - licenses are compatible
# osadl_matrix.OSADLCompatibility.NO - licenses are *NOT* compatible
# osadl_matrix.OSADLCompatibility.UNKNOWN - license compatibility is uncertain
# osadl_matrix.OSADLCompatibility.CHECKDEP - compatibility has depencies that need to be checked
# osadl_matrix.OSADLCompatibility.UNDEF - at least one of the licenses are not present in the OSADL matrix

result = osadl_matrix.supported_licenses()
# result is a set of supported license (identifiers)

Using the raw data

import csv

import osadl_matrix

with open(osadl_matrix.OSADL_MATRIX) as csvinput:
    creader = csv.reader(csvinput, delimiter=',', quotechar='"')
    for row in creader:
        print(row)

or as json

import json

import osadl_matrix

with open(osadl_matrix.OSADL_MATRIX_JSON) as jsoninput:
    cnt = json.read(jsoninput)
    print(cnt)

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

osadl_matrix-2024.5.7.50545.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

osadl_matrix-2024.5.7.50545-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file osadl_matrix-2024.5.7.50545.tar.gz.

File metadata

  • Download URL: osadl_matrix-2024.5.7.50545.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for osadl_matrix-2024.5.7.50545.tar.gz
Algorithm Hash digest
SHA256 951285d0ef3e9107e71608933ab4dbc2b0f9b2e580d0d96fd7711674762b66af
MD5 987abbc36de4e7672a383a3c4c3fa032
BLAKE2b-256 abfef6915843aae209f9f104bae3cd51d78da6bb0b0191bd6d631c57923cb6c3

See more details on using hashes here.

File details

Details for the file osadl_matrix-2024.5.7.50545-py3-none-any.whl.

File metadata

File hashes

Hashes for osadl_matrix-2024.5.7.50545-py3-none-any.whl
Algorithm Hash digest
SHA256 6082c4488a776ba2887dc471450fc4a868e03156df4e577bb4b16c57b4cfa95a
MD5 012a2340ee85f8d1fb2a8e0ba64833fb
BLAKE2b-256 dd7b060f9e5c63be1512b8fcdc83716bb7c4333283836dce8d8b0176df1450e5

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