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
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
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
spdx_license_list-3.21.tar.gz
(13.9 kB
view hashes)
Built Distribution
Close
Hashes for spdx_license_list-3.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97ea5590cccc2f790f1f2a8de603544c491e94a5e23c4d135de04e41f5d38d1a |
|
MD5 | c1da244be05c2d16dc6c9530b3aca604 |
|
BLAKE2b-256 | 4c840369050ed10077a3417e30693b200b5a4d94ebe56d238afd457441bf1e30 |