hermes.commands.harvest.codemeta

Module Contents

Classes

CodeMetaHarvestPlugin

Base plugin that does harvesting.

class hermes.commands.harvest.codemeta.CodeMetaHarvestPlugin

Bases: hermes.commands.harvest.base.HermesHarvestPlugin

Base plugin that does harvesting.

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

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

Implementation of a harvester that provides data from a codemeta.json file format.

Parameters:
  • path – The working path

  • config_path – The path to the config TOML file

  • ctx – The harvesting context that should contain the provided metadata.

_validate(codemeta_file: pathlib.Path) bool
_get_single_codemeta(path: pathlib.Path) pathlib.Path | None