Skip to main content

Deterministically map license strings to its canonical identifier

Project description

LicenseLynx for Python

To use LicenseLynx in Python, you can call the map method from the LicenseLynx module to map a license name to its canonical form. The return value is an object with the canonical name and the source of the license.

Installation

To install the library, run following command:

pip install licenselynx 

Usage

from licenselynx.licenselynx import LicenseLynx

# Map the license name
license_object = LicenseLynx.map("licenseName")

print(license_object.id)
print(license_object.src)

# Map the license name with risky mappings enabled
license_object = LicenseLynx.map("licenseName", risky=True)

License

This project is licensed under the BSD 3-Clause "New" or "Revised" License (SPDX-License-Identifier: BSD-3-Clause).

Copyright (c) Siemens AG 2025 ALL RIGHTS RESERVED

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

licenselynx-2.0.2.tar.gz (106.8 kB view details)

Uploaded Source

Built Distribution

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

licenselynx-2.0.2-py3-none-any.whl (109.6 kB view details)

Uploaded Python 3

File details

Details for the file licenselynx-2.0.2.tar.gz.

File metadata

  • Download URL: licenselynx-2.0.2.tar.gz
  • Upload date:
  • Size: 106.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for licenselynx-2.0.2.tar.gz
Algorithm Hash digest
SHA256 070c8d6d672b1dbf4da5629fb224a92596a3be7e63bc992a9a6f744e8e47a905
MD5 e23d3cdce2862744ff8e3d7b1558f017
BLAKE2b-256 5aac0126892909145b07aa12ca27d0475a6c2bccb9bb8bd248b01d76a8208e26

See more details on using hashes here.

Provenance

The following attestation bundles were made for licenselynx-2.0.2.tar.gz:

Publisher: deploy.yaml on licenselynx/licenselynx

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

File details

Details for the file licenselynx-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: licenselynx-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 109.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for licenselynx-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 24b9b99de59379351271c32df54b54f6cb27e3529368c4f23c10ec265159befe
MD5 ff7307258ebca18584563acdd13f97b1
BLAKE2b-256 d70d635c163766843380403df1ac83aa97d15d38d852f8141107a95ed7870868

See more details on using hashes here.

Provenance

The following attestation bundles were made for licenselynx-2.0.2-py3-none-any.whl:

Publisher: deploy.yaml on licenselynx/licenselynx

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 Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page