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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spdx_license_list-3.28.0.tar.gz.
File metadata
- Download URL: spdx_license_list-3.28.0.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b7c163d4a92a5f044281692784d287b12ca36d2e9caf6e39f40b1a1e1003fce
|
|
| MD5 |
acdc6a3c0431a87f26685ec007945865
|
|
| BLAKE2b-256 |
dfa7a8c001c3e904c1fda2d7b0a0e25db8a17a3b4612a90e1c8c9fd62c417c97
|
Provenance
The following attestation bundles were made for spdx_license_list-3.28.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.28.0.tar.gz -
Subject digest:
7b7c163d4a92a5f044281692784d287b12ca36d2e9caf6e39f40b1a1e1003fce - Sigstore transparency entry: 1014525794
- Sigstore integration time:
-
Permalink:
JJMC89/spdx-license-list@4bb56f04792d913d13154acb30af0b0e7a0b1fb5 -
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@4bb56f04792d913d13154acb30af0b0e7a0b1fb5 -
Trigger Event:
schedule
-
Statement type:
File details
Details for the file spdx_license_list-3.28.0-py3-none-any.whl.
File metadata
- Download URL: spdx_license_list-3.28.0-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4470ca5de095d04e4172d8776e245d629a99abf0d08741261dd014559b746534
|
|
| MD5 |
3b7e83fba0ae536ce177fc9abf402e3f
|
|
| BLAKE2b-256 |
b7eb765df945f75e1f3533aff9ca76def751d0d505da0d2c7865fb3e6daad5e1
|
Provenance
The following attestation bundles were made for spdx_license_list-3.28.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.28.0-py3-none-any.whl -
Subject digest:
4470ca5de095d04e4172d8776e245d629a99abf0d08741261dd014559b746534 - Sigstore transparency entry: 1014525839
- Sigstore integration time:
-
Permalink:
JJMC89/spdx-license-list@4bb56f04792d913d13154acb30af0b0e7a0b1fb5 -
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@4bb56f04792d913d13154acb30af0b0e7a0b1fb5 -
Trigger Event:
schedule
-
Statement type: