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.2

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.2
File Size Uploaded
licenselynx-2.3.2.tar.gz 104.0 kB Details

Built distribution (wheel)

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

Total release size: 213.4 kB

Release files / licenselynx-2.3.2.tar.gz

Download URL licenselynx-2.3.2.tar.gz
Size 104.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7984af0126c74eee65e4e3fc5821ff4fb553d4fe3572aaf2ed6cff9d30374125
BLAKE2b-256 checksum
How to use checksums
101beefc7d744fc3543072ebec1f0441d111de156be650487208a7cddb2be29b
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 14, 2026.

Transparency log

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

Download URL licenselynx-2.3.2-py3-none-any.whl
Size 109.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c9b4ee44c1ac20c1b80bc38cf6952d8193e1b5fed5985be460261226ea3bae7
BLAKE2b-256 checksum
How to use checksums
8d126ba8b65855a2412baef0865348fe3626aa79b20a44da65d6b35160931bde
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 14, 2026.

Transparency log

Release history Release notifications | RSS feed

2.3.4

2 release files

2.3.3

2 release files

This release

2.3.2 This release

2 release files

2.3.1

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