hermes.commands.harvest.cff

Module Contents

Functions

harvest_cff(click_ctx, ctx)

Implementation of a harvester that provides data from CFF in Codemeta format.

_load_cff_from_file(→ Any)

_convert_cff_to_codemeta(→ Any)

_validate(→ bool)

_get_single_cff(→ Optional[pathlib.Path])

Attributes

_CFF_VERSION

_log

hermes.commands.harvest.cff._CFF_VERSION = '1.2.0'
hermes.commands.harvest.cff._log
hermes.commands.harvest.cff.harvest_cff(click_ctx: click.Context, ctx: hermes.model.context.HermesHarvestContext)

Implementation of a harvester that provides data from CFF in Codemeta format.

Parameters
  • click_ctx – Click context that this command was run inside (might be used to extract command line arguments).

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

hermes.commands.harvest.cff._load_cff_from_file(cff_data: str) Any
hermes.commands.harvest.cff._convert_cff_to_codemeta(cff_data: str) Any
hermes.commands.harvest.cff._validate(cff_file: pathlib.Path, cff_dict: Dict) bool
hermes.commands.harvest.cff._get_single_cff(path: pathlib.Path) Optional[pathlib.Path]