nexusLIMS.extractors.plugins.basic_metadata#
Basic metadata extractor plugin (fallback for unknown file types).
Module Contents#
Classes#
Fallback extractor for files without a specific format handler. |
Functions#
Get basic metadata from a file. |
API#
- class nexusLIMS.extractors.plugins.basic_metadata.BasicFileInfoExtractor[source]#
Fallback extractor for files without a specific format handler.
This extractor provides basic metadata (creation time, file size, etc.) for files that don’t have a specialized extractor. It has the lowest priority and will only be used if no other extractor supports the file.
- name#
‘basic_file_info_extractor’
- priority#
0
- supported_extensions#
Type: typing.ClassVar
- supports(context: ExtractionContext) bool[source]#
Check if this extractor supports the given file.
This extractor always returns True since it’s the fallback for all files.
- Parameters:
context – The extraction context containing file information
- Returns:
Always True (this is the fallback extractor)
- Return type: