[![Latest PyPI release](https://img.shields.io/pypi/v/spdx-license-list?logo=pypi)](https://pypi.org/project/spdx-license-list) ![Latest GitHub release](https://img.shields.io/github/v/release/JJMC89/spdx-license-list?logo=github) ![Latest tag](https://img.shields.io/github/v/tag/JJMC89/spdx-license-list?logo=git)
![License](https://img.shields.io/pypi/l/spdx-license-list?color=blue) ![Python versions](https://img.shields.io/pypi/pyversions/spdx-license-list?logo=python)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/JJMC89/spdx-license-list/main.svg)](https://results.pre-commit.ci/latest/github/JJMC89/pywikibot-extensions/main)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
# SPDX License List
Provides the SPDX License List as a Python dictionary
Data source: [spdx/license-list-data](https://github.com/spdx/license-list-data)
Designed as a replacement for [Michael Pöhn's spdx-license-list](https://gitlab.com/uniqx/spdx-license-list) but does not have the same API
## Installation
```console
pip install spdx-license-list
```
## API
`spdx_license_list.LICENSES` is a dictionary of all the licenses.
The dictionary uses the identifier (**id**) as the keys, and the values are (typed) named tuples with the following attributes:
- **id** (*str*) - short identifier to identify a match to licenses in the context of an SPDX file, a source file, or elsewhere
- **name** (*str*) - full name that should be the title found in the license file or consistent with naming from other well-known sources
- **deprecated_id** (*bool*) - idendifier is deprecated
- **fsf_libre** (*bool*) - license is [listed as free by the FSF](https://www.gnu.org/licenses/license-list.en.html)
- **osi_approved** (*bool*) - license is [OSI-approved](https://opensource.org/licenses)
Raw data
{
"_id": null,
"home_page": "https://github.com/JJMC89/spdx-license-list",
"name": "spdx-license-list",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": null,
"author": "JJMC89",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/24/3b/20dfba0effc8f232576c19552a858cde3f830cddb1ea812c1e89f75f0519/spdx_license_list-3.25.0.tar.gz",
"platform": null,
"description": "[![Latest PyPI release](https://img.shields.io/pypi/v/spdx-license-list?logo=pypi)](https://pypi.org/project/spdx-license-list) ![Latest GitHub release](https://img.shields.io/github/v/release/JJMC89/spdx-license-list?logo=github) ![Latest tag](https://img.shields.io/github/v/tag/JJMC89/spdx-license-list?logo=git)\n\n![License](https://img.shields.io/pypi/l/spdx-license-list?color=blue) ![Python versions](https://img.shields.io/pypi/pyversions/spdx-license-list?logo=python)\n\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/JJMC89/spdx-license-list/main.svg)](https://results.pre-commit.ci/latest/github/JJMC89/pywikibot-extensions/main)\n\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n# SPDX License List\n\nProvides the SPDX License List as a Python dictionary\n\nData source: [spdx/license-list-data](https://github.com/spdx/license-list-data)\n\nDesigned as a replacement for [Michael P\u00f6hn's spdx-license-list](https://gitlab.com/uniqx/spdx-license-list) but does not have the same API\n\n## Installation\n\n```console\npip install spdx-license-list\n```\n\n## API\n\n`spdx_license_list.LICENSES` is a dictionary of all the licenses.\n\nThe dictionary uses the identifier (**id**) as the keys, and the values are (typed) named tuples with the following attributes:\n- **id** (*str*) - short identifier to identify a match to licenses in the context of an SPDX file, a source file, or elsewhere\n- **name** (*str*) - full name that should be the title found in the license file or consistent with naming from other well-known sources\n- **deprecated_id** (*bool*) - idendifier is deprecated\n- **fsf_libre** (*bool*) - license is [listed as free by the FSF](https://www.gnu.org/licenses/license-list.en.html)\n- **osi_approved** (*bool*) - license is [OSI-approved](https://opensource.org/licenses)\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "SPDX License List as a Python dictionary",
"version": "3.25.0",
"project_urls": {
"Homepage": "https://github.com/JJMC89/spdx-license-list",
"Repository": "https://github.com/JJMC89/spdx-license-list"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6de510ba5b029a199a0ecce04f264ff3b2c16572e8bf4446d364970dc74b1b43",
"md5": "f5176b60ce4b619300a507c33e93e636",
"sha256": "0b09d7ea666e1765e189031135ac842e48a9c99312e939c1d3dacbc61e7768aa"
},
"downloads": -1,
"filename": "spdx_license_list-3.25.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f5176b60ce4b619300a507c33e93e636",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 15587,
"upload_time": "2024-08-20T02:17:01",
"upload_time_iso_8601": "2024-08-20T02:17:01.794423Z",
"url": "https://files.pythonhosted.org/packages/6d/e5/10ba5b029a199a0ecce04f264ff3b2c16572e8bf4446d364970dc74b1b43/spdx_license_list-3.25.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "243b20dfba0effc8f232576c19552a858cde3f830cddb1ea812c1e89f75f0519",
"md5": "6ed1200b2ed4f01657002e091316fa3f",
"sha256": "6b104dc74b925c6888e0615b4a52f1d4ff550a32e48347a5d5223c15e8ff101e"
},
"downloads": -1,
"filename": "spdx_license_list-3.25.0.tar.gz",
"has_sig": false,
"md5_digest": "6ed1200b2ed4f01657002e091316fa3f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 15989,
"upload_time": "2024-08-20T02:17:03",
"upload_time_iso_8601": "2024-08-20T02:17:03.038307Z",
"url": "https://files.pythonhosted.org/packages/24/3b/20dfba0effc8f232576c19552a858cde3f830cddb1ea812c1e89f75f0519/spdx_license_list-3.25.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-20 02:17:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "JJMC89",
"github_project": "spdx-license-list",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "spdx-license-list"
}