HomeSoftware Heritage

Return list of RawExtrensicMetadata instead of tuple

Description

Return list of RawExtrensicMetadata instead of tuple

Currently map_row returns a complex tuple, that damages code readability, so instead of returning complex tuple it should return a named class RawExtrensicMetadata.

Add different fields like file, format in map_row, map_scancode, map_clearlydefined, map_licensee that are required to map previous tuple data with RawExtrensicMetadata. Add docstrings and tests.

Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>

Details

Provenance
TG1999Authored on Feb 16 2021, 9:38 AM
TG1999Pushed on Feb 16 2021, 9:41 AM
Differential Revision
D5061: map_row will return list of RawExtrensicMetadata
Parents
rDMFCD9940287285ba: Map a row from clearcode toolkit with software heritage archive
Branches
Unknown
Tags
Unknown
Build Status
Buildable 19230
Build 29825: test-and-buildJenkins console · Jenkins