hermes.commands.harvest.codemeta

Module Contents

Functions

harvest_codemeta(click_ctx, ctx)

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

_validate(→ bool)

_get_single_codemeta(→ Optional[pathlib.Path])

hermes.commands.harvest.codemeta.harvest_codemeta(click_ctx: click.Context, ctx: hermes.model.context.HermesHarvestContext)

Implementation of a harvester that provides data from a codemeta.json file 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.codemeta._validate(codemeta_file: pathlib.Path) bool
hermes.commands.harvest.codemeta._get_single_codemeta(path: pathlib.Path) Optional[pathlib.Path]