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

Method to_dict

etc/scripts/utils_thirdparty.py:676–680  ·  view source on GitHub ↗

Return a mapping data from this distribution.

(self)

Source from the content-addressed store, hash-verified

674 return about_data
675
676 def to_dict(self):
677 """
678 Return a mapping data from this distribution.
679 """
680 return {k: v for k, v in attr.asdict(self).items() if v}
681
682 def save_about_and_notice_files(self, dest_dir=THIRDPARTY_DIR):
683 """

Callers 4

get_updatable_dataMethod · 0.95
cliFunction · 0.45
dump_skinny_ruleFunction · 0.45
cliFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected