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

Method __attrs_post_init__

src/packagedcode/models.py:1627–1631  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1625 )
1626
1627 def __attrs_post_init__(self, *args, **kwargs):
1628 if not self.purl:
1629 self.purl = self.set_purl()
1630 if not self.package_uid:
1631 self.package_uid = build_package_uid(self.purl)
1632
1633 def to_dict(self):
1634 return super().to_dict(with_details=False)

Callers

nothing calls this directly

Calls 2

build_package_uidFunction · 0.85
set_purlMethod · 0.80

Tested by

no test coverage detected