hermes.commands.harvest.base

Module Contents

Classes

HermesHarvestPlugin

Base plugin that does harvesting.

HarvestSettings

Generic harvesting settings.

HermesHarvestCommand

Harvest metadata from configured sources.

class hermes.commands.harvest.base.HermesHarvestPlugin

Bases: hermes.commands.base.HermesPlugin

Base plugin that does harvesting.

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

__call__(command: hermes.commands.base.HermesCommand) Tuple[Dict, Dict]

Execute the plugin.

Parameters:

command – The command that triggered this plugin to run.

class hermes.commands.harvest.base.HarvestSettings(/, **data: Any)

Bases: pydantic.BaseModel

Generic harvesting settings.

sources: list[str] = []
class hermes.commands.harvest.base.HermesHarvestCommand(parser: argparse.ArgumentParser)

Bases: hermes.commands.base.HermesCommand

Harvest metadata from configured sources.

command_name = 'harvest'
settings_class
__call__(args: argparse.Namespace) None

Execute the HERMES sub-command.

Parameters:

args – The namespace that was returned by the command line parser when reading the arguments.