hermes.commands.curate.base

Module Contents

Classes

CurateSettings

Generic deposition settings.

HermesCurateCommand

Curate the unified metadata before deposition.

class hermes.commands.curate.base.CurateSettings(/, **data: Any)

Bases: pydantic.BaseModel

Generic deposition settings.

class hermes.commands.curate.base.HermesCurateCommand(parser: argparse.ArgumentParser)

Bases: hermes.commands.base.HermesCommand

Curate the unified metadata before deposition.

command_name = 'curate'
settings_class
init_command_parser(command_parser: argparse.ArgumentParser) None

Initialize the command line arguments available for this specific HERMES sub-commands.

You should override this method to add your custom arguments to the command line parser of the respective sub-command.

Parameters:

command_parser – The command line sub-parser responsible for the HERMES sub-command.

__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.