hermes.commands.harvest.cff

Module Contents

Classes

CffHarvestSettings

Custom settings for CFF harvester.

CffHarvestPlugin

Base plugin that does harvesting.

Attributes

_CFF_VERSION

_log

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.

enable_validation: bool = True
class hermes.commands.harvest.cff.CffHarvestPlugin

Bases: hermes.commands.harvest.base.HermesHarvestPlugin

Base plugin that does harvesting.

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

settings_class
__call__(command: hermes.commands.harvest.base.HermesHarvestCommand) Tuple[Dict, Dict]

Execute the plugin.

Parameters:

command – The command that triggered this plugin to run.

_load_cff_from_file(cff_data: str) Any
_patch_author_emails(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