hermes.commands.harvest.cff

Attributes

Classes

CffHarvestSettings

Custom settings for CFF harvester.

CffHarvestPlugin

Base plugin that does harvesting.

Module Contents

hermes.commands.harvest.cff._CFF_VERSION = '1.2.0'
hermes.commands.harvest.cff._log
class hermes.commands.harvest.cff.CffHarvestSettings(/, **data: Any)

Bases: pydantic.BaseModel

Custom settings for CFF harvester.

class hermes.commands.harvest.cff.CffHarvestPlugin

Bases: hermes.commands.harvest.base.HermesHarvestPlugin

Base plugin that does harvesting.

operations

The information recorded on the load operations executed by the plugin.

Type:

list[tuple[dict[str, str], dict[str, str], dict[str, str]]]

TODO: describe the harvesting process and how this is mapped to this plugin.

__call__(command: hermes.commands.harvest.base.HermesHarvestCommand) tuple[hermes.model.SoftwareMetadata, dict]

Execute the hermes harvest plugin self.

Parameters:

command (HermesHarvestCommand) – The command being executed.

Returns:

The harvested metadata.

Return type:

SoftwareMetadata

_load_cff_from_file(cff_data: str) Any
_patch_author_emails(cff: dict, codemeta: dict) dict
_patch_identifiers(cff: dict, codemeta: dict) dict
_convert_cff_to_codemeta(cff_data: str) Any
_validate(cff_file: pathlib.Path, cff_dict: dict) bool
_get_single_cff(path: pathlib.Path) pathlib.Path | None