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

Function build_package_uid

src/packagedcode/models.py:1569–1575  ·  view source on GitHub ↗

Return a purl string with a UUID qualifier given a ``purl`` string .

(purl)

Source from the content-addressed store, hash-verified

1567
1568
1569def build_package_uid(purl):
1570 """
1571 Return a purl string with a UUID qualifier given a ``purl`` string .
1572 """
1573 purl = PackageURL.from_string(purl)
1574 purl.qualifiers['uuid'] = str(uuid.uuid4())
1575 return str(purl)
1576
1577
1578def build_purl(mapping):

Callers 3

__attrs_post_init__Method · 0.85
__attrs_post_init__Method · 0.85
from_package_dataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected