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

Function get_package_identifier

src/summarycode/todo.py:229–236  ·  view source on GitHub ↗
(package_data, file_path)

Source from the content-addressed store, hash-verified

227
228
229def get_package_identifier(package_data, file_path):
230
231 identifier_elements = (
232 package_data["purl"],
233 package_data["declared_license_expression"],
234 file_path,
235 )
236 return get_uuid_on_content(content=[identifier_elements])
237
238
239def get_unknown_purl(package_type):

Callers 1

from_packageMethod · 0.85

Calls 1

get_uuid_on_contentFunction · 0.90

Tested by

no test coverage detected