MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / ApkLicenseDetection

Class ApkLicenseDetection

src/packagedcode/alpine.py:1367–1384  ·  view source on GitHub ↗

Represent the results of an Alpine license detection, including intermediate steps.

Source from the content-addressed store, hash-verified

1365
1366@dataclasses.dataclass
1367class ApkLicenseDetection:
1368 """
1369 Represent the results of an Alpine license detection, including intermediate steps.
1370 """
1371 declared_license: str
1372 cleaned_license: str
1373 mapped_license: str
1374 license_detections: list
1375 license_expression: str
1376
1377 def to_dict(self):
1378 return dict(
1379 declared_license=self.declared_license,
1380 cleaned_license=self.cleaned_license,
1381 mapped_license=self.mapped_license,
1382 license_detections=self.license_detections,
1383 license_expression=self.license_expression,
1384 )
1385
1386
1387def get_alpine_license_detection(declared):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected