SPDX License List as a Python dictionary
Project description
SPDX License List
Provides the SPDX License List as a Python dictionary
Data source: spdx/license-list-data
Originally designed as a replacement for Michael Pöhn's spdx-license-list but does not have the same API
Installation
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
- osi_approved (bool) - license is OSI-approved
spdx_license_list.EXCEPTIONS
is a dictionary of all the license exceptions.
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 license exceptions 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
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
Built Distribution
File details
Details for the file spdx_license_list-3.26.0.tar.gz
.
File metadata
- Download URL: spdx_license_list-3.26.0.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
dc8eed9acdf070deba0e6ac9335d704f0e3338d30895000d911c70e4b7853e5b
|
|
MD5 |
173552618cdd679f47eb5b5c933c07d7
|
|
BLAKE2b-256 |
7f6797940129da791b3264157ff402a3dd1d927404e47dc862f9543905245b43
|
Provenance
The following attestation bundles were made for spdx_license_list-3.26.0.tar.gz
:
Publisher:
update.yaml
on JJMC89/spdx-license-list
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
spdx_license_list-3.26.0.tar.gz
-
Subject digest:
dc8eed9acdf070deba0e6ac9335d704f0e3338d30895000d911c70e4b7853e5b
- Sigstore transparency entry: 158434345
- Sigstore integration time:
-
Permalink:
JJMC89/spdx-license-list@5f94094e24dd9d5596d160d97c6c58b898f93e8b
-
Branch / Tag:
refs/heads/main
- Owner: https://github.com/JJMC89
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
update.yaml@5f94094e24dd9d5596d160d97c6c58b898f93e8b
-
Trigger Event:
schedule
-
Statement type:
File details
Details for the file spdx_license_list-3.26.0-py3-none-any.whl
.
File metadata
- Download URL: spdx_license_list-3.26.0-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
dab69ae676e822623bb64ddfd0a4061a4a264498ca10799ac8e98592ca813f49
|
|
MD5 |
ba532fcd729b0da760430dbdd89f5ed3
|
|
BLAKE2b-256 |
e1e3afad714d3a06982786ce94cefacb046bf3450ae3a3a8ef7a0d51f1ce945e
|
Provenance
The following attestation bundles were made for spdx_license_list-3.26.0-py3-none-any.whl
:
Publisher:
update.yaml
on JJMC89/spdx-license-list
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
spdx_license_list-3.26.0-py3-none-any.whl
-
Subject digest:
dab69ae676e822623bb64ddfd0a4061a4a264498ca10799ac8e98592ca813f49
- Sigstore transparency entry: 158434347
- Sigstore integration time:
-
Permalink:
JJMC89/spdx-license-list@5f94094e24dd9d5596d160d97c6c58b898f93e8b
-
Branch / Tag:
refs/heads/main
- Owner: https://github.com/JJMC89
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
update.yaml@5f94094e24dd9d5596d160d97c6c58b898f93e8b
-
Trigger Event:
schedule
-
Statement type: