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
Metadata
Release files for spdx-license-list 3.29.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| spdx_license_list-3.29.0.tar.gz | 19.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spdx_license_list-3.29.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.0 kB
Release files / spdx_license_list-3.29.0.tar.gz
| Download URL | spdx_license_list-3.29.0.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ddb36d6aa6de8adeb9ff165c0d4561455ee6cd1686e4b1caf9dea14b19d54f2
|
|
BLAKE2b-256 checksum How to use checksums |
2c1556bf851ccb0067aaf41ab19a7bb672f8b8b7d9a28ab3f195d19dbc5fc237
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / spdx_license_list-3.29.0-py3-none-any.whl
| Download URL | spdx_license_list-3.29.0-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19d5912e8f919201c4bd37ee5121963bfb3a25c5f66779b47aafa1e7fb9d97b6
|
|
BLAKE2b-256 checksum How to use checksums |
d82db834653665816e6e70997470083862d9503530dfa04bb192ee720b887a57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logSecurity for spdx-license-list 3.29.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for spdx_license_list-3.29.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.