Licensecheck Index / Licensecheck / License Matrix
Auto-generated documentation for licensecheck.license_matrix module.
-
PERMISSIVE- Permissive licenses compatible with GPL:[L.MIT, L.BOOST, L.BSD, L.ISC, L.NCSA, L.PSFL] -
PERMISSIVE_OTHER- Permissive licenses NOT compatible with GPL:[L.APACHE, L.ECLIPSE, L.ACADEMIC_FREE] -
LGPL- LGPL licenses:[L.LGPL_2, L.LGPL_3, L.LGPL_2_PLUS, L.LGPL_3_PLUS, L.LGPL_X] -
GPL- GPL licenses (including AGPL):[L.GPL_2, L.GPL_3, L.GPL_2_PLUS, L.GPL_3_PLUS, L.GPL_X, L.AGPL_3_PLUS] -
OTHER_COPYLEFT- Other Copyleft licenses:[L.MPL, L.EU] -
UNLICENSE_INCOMPATIBLE- Basic compat matrix:PERMISSIVE + PERMISSIVE_OTHER + GPL + LGPL + OTHER_COPYLEFT + [L.NO_LICENSE, L.PROPRIETARY] -
GPL_2_INCOMPATIBLE- GPL compat matrix https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility:[L.GPL_3, L.GPL_3_PLUS, L.LGPL_3, L.LGPL_3_PLUS]
Show source in license_matrix.py:168
Identify if the end user license is compatible with the dependency license(s).
myLicenseL - end user license to checkdepLicelist[L] - dependency licenseignoreLicenseslist[L], optional - list of licenses to ignore. Defaults to None.failLicenseslist[L], optional - list of licenses to fail on. Defaults to None.
bool- True if compatible, otherwise False
def depCompatWMyLice(
myLicense: L,
depLice: list[L],
ignoreLicenses: list[L] | None = None,
failLicenses: list[L] | None = None,
) -> bool:
...Show source in license_matrix.py:44
Identify a license from an uppercase string representation of a license.
licenseStrstr - uppercase string representation of a license
L- License represented by licenseStr
def licenseLookup(licenseStr: str) -> L:
...Show source in license_matrix.py:101
Return a list of license types from a license string.
licestr - license name
list[L]- the license
def licenseType(lice: str) -> list[L]:
...