Skip to main content

Latest PyPI release Latest GitHub release Latest tag

License Python versions

pre-commit.ci status

Code style: black

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

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.28.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spdx_license_list-3.28.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

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

Hashes for spdx_license_list-3.28.0.tar.gz
Algorithm Hash digest
SHA256 7b7c163d4a92a5f044281692784d287b12ca36d2e9caf6e39f40b1a1e1003fce
MD5 acdc6a3c0431a87f26685ec007945865
BLAKE2b-256 dfa7a8c001c3e904c1fda2d7b0a0e25db8a17a3b4612a90e1c8c9fd62c417c97

See more details on using hashes here.

Provenance

The following attestation bundles were made for spdx_license_list-3.28.0.tar.gz:

Publisher: update.yaml on JJMC89/spdx-license-list

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spdx_license_list-3.28.0-py3-none-any.whl.

File metadata

File hashes

Hashes for spdx_license_list-3.28.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4470ca5de095d04e4172d8776e245d629a99abf0d08741261dd014559b746534
MD5 3b7e83fba0ae536ce177fc9abf402e3f
BLAKE2b-256 b7eb765df945f75e1f3533aff9ca76def751d0d505da0d2c7865fb3e6daad5e1

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

3.28.0 This release

2 files

3.27.0

2 files

3.26.0

2 files

3.25.0

2 files

3.24.0

2 files

3.23

2 files

3.22

2 files

3.21

2 files

3.20

2 files

3.19

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page