Skip to main content

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)

Organization Licenses

Organizations can register internal/proprietary license identifiers that are kept separate from OSS licenses. To look up an organization license, pass the org parameter:

from licenselynx.licenselynx import LicenseLynx
from licenselynx import Organization

# Map a license name within an organization
license_object = LicenseLynx.map("licenseName", org=Organization.SIEMENS)

The LicenseSource enum is also available for inspecting the source type:

from licenselynx import LicenseSource

Helper methods on the returned license object:

# Check if the license comes from any organization
license_object.is_organization_source()  # returns True if from any org

# Check if the license comes from a specific organization
license_object.is_organization_source_of(Organization.SIEMENS)  # returns True if from Siemens

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

Release files for licenselynx 2.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for licenselynx 2.3.1
File Size Uploaded
licenselynx-2.3.1.tar.gz 104.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for licenselynx 2.3.1
File Interpreter ABI Platform
licenselynx-2.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 213.4 kB

Release files / licenselynx-2.3.1.tar.gz

Download URL licenselynx-2.3.1.tar.gz
Size 104.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9884e1e1fbc1acbd71b1a293d6ca744524857e69917a62a8900a0a15fe294ff1
BLAKE2b-256 checksum
How to use checksums
4e084c1280a91999424f0dcfbd505c31c596cd15d2fd54c15e6ed15568e5cb27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.

Transparency log

Release files / licenselynx-2.3.1-py3-none-any.whl

Download URL licenselynx-2.3.1-py3-none-any.whl
Size 109.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7f6bfdca522a6b7b5ad9522eb93d01560eae577048560b28183d285a804e2da
BLAKE2b-256 checksum
How to use checksums
0d23ce736a6f4af9b247a135566574cf7839e284426f100568429b0c49dfb6c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.

Transparency log

Release history Release notifications | RSS feed

2.3.4

2 release files

2.3.3

2 release files

2.3.2

2 release files

This release

2.3.1 This release

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.9.13

2 release files

0.9.12

2 release files

0.9.11

2 release files

0.9.10

2 release files

0.9.9

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page