spdx-license-list


Namespdx-license-list JSON
Version 3.24.0 PyPI version JSON
download
home_pagehttps://github.com/JJMC89/spdx-license-list
SummarySPDX License List as a Python dictionary
upload_time2024-05-28 02:35:03
maintainerNone
docs_urlNone
authorJJMC89
requires_python<4.0,>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![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/71/6e/cdf23a618634e72a3879656f3e2998d190160b04e35d8d4352ca953d1ab2/spdx_license_list-3.24.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.24.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": "f17431d016b322dae1ce542c83e5d2b246392cdc09ad9ab34bccfca01f42ffbf",
                "md5": "c6ffa74ee9475c559bd7cb75599804ad",
                "sha256": "1690e1be9d7bb39a9f9dfcdc403a44523bae55c94a82ff88781a98d46bd13610"
            },
            "downloads": -1,
            "filename": "spdx_license_list-3.24.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c6ffa74ee9475c559bd7cb75599804ad",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 15450,
            "upload_time": "2024-05-28T02:35:01",
            "upload_time_iso_8601": "2024-05-28T02:35:01.047787Z",
            "url": "https://files.pythonhosted.org/packages/f1/74/31d016b322dae1ce542c83e5d2b246392cdc09ad9ab34bccfca01f42ffbf/spdx_license_list-3.24.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "716ecdf23a618634e72a3879656f3e2998d190160b04e35d8d4352ca953d1ab2",
                "md5": "2d2aabe4fad65d39916b1e91a98ec844",
                "sha256": "d366a39da290f5f97f3137a4520e6155574070b21d4838179b837b12dddf006f"
            },
            "downloads": -1,
            "filename": "spdx_license_list-3.24.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2d2aabe4fad65d39916b1e91a98ec844",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 15819,
            "upload_time": "2024-05-28T02:35:03",
            "upload_time_iso_8601": "2024-05-28T02:35:03.143370Z",
            "url": "https://files.pythonhosted.org/packages/71/6e/cdf23a618634e72a3879656f3e2998d190160b04e35d8d4352ca953d1ab2/spdx_license_list-3.24.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-28 02:35: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"
}
        
Elapsed time: 0.34747s