Skip to main content

SPDX License List as a Python dictionary

Project description

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

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

Uploaded Source

Built Distribution

spdx_license_list-3.26.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

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

Hashes for spdx_license_list-3.26.0.tar.gz
Algorithm Hash digest
SHA256 dc8eed9acdf070deba0e6ac9335d704f0e3338d30895000d911c70e4b7853e5b
MD5 173552618cdd679f47eb5b5c933c07d7
BLAKE2b-256 7f6797940129da791b3264157ff402a3dd1d927404e47dc862f9543905245b43

See more details on using hashes here.

Provenance

The following attestation bundles were made for spdx_license_list-3.26.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.26.0-py3-none-any.whl.

File metadata

File hashes

Hashes for spdx_license_list-3.26.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dab69ae676e822623bb64ddfd0a4061a4a264498ca10799ac8e98592ca813f49
MD5 ba532fcd729b0da760430dbdd89f5ed3
BLAKE2b-256 e1e3afad714d3a06982786ce94cefacb046bf3450ae3a3a8ef7a0d51f1ce945e

See more details on using hashes here.

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

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

Supported by

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