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

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

Uploaded Source

Built Distribution

spdx_license_list-3.25.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file spdx_license_list-3.25.0.tar.gz.

File metadata

  • Download URL: spdx_license_list-3.25.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for spdx_license_list-3.25.0.tar.gz
Algorithm Hash digest
SHA256 6b104dc74b925c6888e0615b4a52f1d4ff550a32e48347a5d5223c15e8ff101e
MD5 6ed1200b2ed4f01657002e091316fa3f
BLAKE2b-256 243b20dfba0effc8f232576c19552a858cde3f830cddb1ea812c1e89f75f0519

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_license_list-3.25.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b09d7ea666e1765e189031135ac842e48a9c99312e939c1d3dacbc61e7768aa
MD5 f5176b60ce4b619300a507c33e93e636
BLAKE2b-256 6de510ba5b029a199a0ecce04f264ff3b2c16572e8bf4446d364970dc74b1b43

See more details on using hashes here.

Supported by

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