Name | osadl-matrix JSON |
Version |
2024.5.7.50556
JSON |
| download |
home_page | None |
Summary | OSADL license compatibility matrix |
upload_time | 2024-05-07 05:26:10 |
maintainer | None |
docs_url | None |
author | Konrad Weihmann |
requires_python | None |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# osadl-matrix
This is a machine readable version of the [OSADL license compatibility matrix](https://www.osadl.org/Access-to-raw-data.oss-compliance-raw-data-access.0.html) as a python library.
## Changelog of the provided data
A detailed changelog of the provided data can be found [here](https://github.com/priv-kweihmann/osadl-matrix/blob/master/DATALOG.md)
## License
This module is licensed under [Unlicensed](LICENSE.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](https://www.osadl.org/Access-to-raw-data.oss-compliance-raw-data-access.0.html)
A copy of the CC-BY-4.0 text can be found [here](LICENSE.ccby40)
## 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
```python
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
```python
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
```python
import json
import osadl_matrix
with open(osadl_matrix.OSADL_MATRIX_JSON) as jsoninput:
cnt = json.read(jsoninput)
print(cnt)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "osadl-matrix",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Konrad Weihmann",
"author_email": "kweihmann@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/f0/db/50d6fb03dd8933bad5fa4443c595337149c6457c2868ae2d9e6aa64c227f/osadl_matrix-2024.5.7.50556.tar.gz",
"platform": null,
"description": "# osadl-matrix\n\nThis is a machine readable version of the [OSADL license compatibility matrix](https://www.osadl.org/Access-to-raw-data.oss-compliance-raw-data-access.0.html) as a python library.\n\n## Changelog of the provided data\n\nA detailed changelog of the provided data can be found [here](https://github.com/priv-kweihmann/osadl-matrix/blob/master/DATALOG.md)\n\n## License\n\nThis module is licensed under [Unlicensed](LICENSE.Unlicensed) license. Feel free to do whatever you want with it.\n\n### Data license\n\nThe 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/.\n\n\u00a9 2017 - 2021 Open Source Automation Development Lab (OSADL) eG and contributors, info@osadl.org\n\nFurther information can be found [here](https://www.osadl.org/Access-to-raw-data.oss-compliance-raw-data-access.0.html)\nA copy of the CC-BY-4.0 text can be found [here](LICENSE.ccby40)\n\n## Disclaimer\n\nWe 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.\n\n## Usage\n\n### Using builtin functions\n\n```python\nimport osadl_matrix\n\nresult = osadl_matrix.is_compatible(\"BSD-3-Clause\", \"MIT\")\n# result is either\n# True - licenses are compatible\n# False - licenses are *NOT* compatible\n\nresult = osadl_matrix.get_compatibility(\"GPL-2.0-only\", \"MIT\")\n# result is either\n# osadl_matrix.OSADLCompatibility.YES - licenses are compatible\n# osadl_matrix.OSADLCompatibility.NO - licenses are *NOT* compatible\n# osadl_matrix.OSADLCompatibility.UNKNOWN - license compatibility is uncertain\n# osadl_matrix.OSADLCompatibility.CHECKDEP - compatibility has depencies that need to be checked\n# osadl_matrix.OSADLCompatibility.UNDEF - at least one of the licenses are not present in the OSADL matrix\n\nresult = osadl_matrix.supported_licenses()\n# result is a set of supported license (identifiers)\n```\n\n### Using the raw data\n\n```python\nimport csv\n\nimport osadl_matrix\n\nwith open(osadl_matrix.OSADL_MATRIX) as csvinput:\n creader = csv.reader(csvinput, delimiter=',', quotechar='\"')\n for row in creader:\n print(row)\n```\n\nor as json\n\n```python\nimport json\n\nimport osadl_matrix\n\nwith open(osadl_matrix.OSADL_MATRIX_JSON) as jsoninput:\n cnt = json.read(jsoninput)\n print(cnt)\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "OSADL license compatibility matrix",
"version": "2024.5.7.50556",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a7b0cad3f49cab3f80ca1cdb5b481af3def5ddd73e791d2d9bb71805bc8c5e11",
"md5": "7825267d8e2c679cb6308787e8f4e1ab",
"sha256": "3d44f36393146952f2d978f11092ab5ff382e56174c0b5c6528d4d916ae63d4a"
},
"downloads": -1,
"filename": "osadl_matrix-2024.5.7.50556-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7825267d8e2c679cb6308787e8f4e1ab",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 19591,
"upload_time": "2024-05-07T05:26:07",
"upload_time_iso_8601": "2024-05-07T05:26:07.772783Z",
"url": "https://files.pythonhosted.org/packages/a7/b0/cad3f49cab3f80ca1cdb5b481af3def5ddd73e791d2d9bb71805bc8c5e11/osadl_matrix-2024.5.7.50556-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f0db50d6fb03dd8933bad5fa4443c595337149c6457c2868ae2d9e6aa64c227f",
"md5": "e1cdfc79980c1660bb7baec596649747",
"sha256": "0eadbaf5c4f20aa69e9dd56bdcc90266ebf1734c7070e5671e9490dfc8dc444c"
},
"downloads": -1,
"filename": "osadl_matrix-2024.5.7.50556.tar.gz",
"has_sig": false,
"md5_digest": "e1cdfc79980c1660bb7baec596649747",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 26743,
"upload_time": "2024-05-07T05:26:10",
"upload_time_iso_8601": "2024-05-07T05:26:10.326481Z",
"url": "https://files.pythonhosted.org/packages/f0/db/50d6fb03dd8933bad5fa4443c595337149c6457c2868ae2d9e6aa64c227f/osadl_matrix-2024.5.7.50556.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-07 05:26:10",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "osadl-matrix"
}