Skip to content

Provide infoextractor name in return value of extract_file_info #555

@slyles1001

Description

@slyles1001

Is your feature request related to a problem? Please describe.
When using surfactant as a library, the extract_file_info function returns a list of file metadata. However, we don't know which infoextractor provides which value.

Describe the solution you'd like
extract_file_info returns a dictionary where the key is the infoextractor and the value is the output.

Describe alternatives you've considered
Alternatively, keep it a list but have each returned value contain infoextractor: <infoextractor> pairs.
Otherwise, we could create schema for each infoextractor.

Additional context
The schema option will probably prove to be difficult due to the arbitrary nature of possible fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions