bridge.core.license module#
Module defining the SPDX license data model.
- class bridge.core.license.SPDXCrossRef(**data)[source]#
Bases:
BaseModelRepresent a cross-reference for an SPDX license.
- Parameters:
url (HttpUrl) – The URL of the cross-reference.
isValid (bool | None) – Whether the cross-reference is valid.
isLive (bool | None) – Whether the cross-reference is live.
isWayBackLink (bool | None) – Whether the cross-reference is a Wayback Machine link.
match (str | None) – The match type of the cross-reference.
timestamp (str | None) – The timestamp of the cross-reference.
order (int | None) – The order of the cross-reference.
-
isLive:
bool|None#
-
isValid:
bool|None#
-
isWayBackLink:
bool|None#
-
match_:
str|None#
-
order:
int|None#
-
timestamp:
str|None#
-
url:
HttpUrl#
- class bridge.core.license.SPDXLicense(**data)[source]#
Bases:
BaseModelRepresent an SPDX license.
- Parameters:
licenseId (str) – SPDX license identifier (e.g.
"MIT","GPL-3.0-only").name (str) – Full name of the license.
licenseText (str) – Canonical license text.
licenseTextHtml (str) – HTML-formatted license text.
isDeprecatedLicenseId (bool | None) – Whether the license ID is deprecated.
standardLicenseTemplate (str | None) – Standard license template text, if available.
isOsiApproved (bool | None) – Whether the license is OSI-approved.
isFsfLibre (bool | None) – Whether the license is FSF libre.
seeAlso (list[HttpUrl] | None) – List of URLs with additional information about the license.
crossRef (list[SPDXCrossRef] | None) – List of cross-references for the license.
-
crossRef:
list[SPDXCrossRef] |None#
-
isDeprecatedLicenseId:
bool|None#
-
isFsfLibre:
bool|None#
-
isOsiApproved:
bool|None#
-
licenseId:
str#
-
licenseText:
str#
-
licenseTextHtml:
str#
-
name:
str#
-
seeAlso:
list[HttpUrl] |None#
-
standardLicenseTemplate:
str|None#